mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
Replaced remaining tip form classes with muted style
This commit is contained in:
parent
f0aed0ba77
commit
99f0a16d71
3 changed files with 17 additions and 3 deletions
|
@ -202,6 +202,11 @@ export default Component.extend(AuthProvider, ModalMixin, {
|
|||
let group = this.get('groups').findBy('id', groupId);
|
||||
group.set('isMember', false);
|
||||
|
||||
if (is.undefined(groupId) || is.undefined(userId)) {
|
||||
console.log(groupId, userId);
|
||||
return;
|
||||
}
|
||||
|
||||
this.get('groupSvc').leave(groupId, userId).then(() => {
|
||||
this.filterUsers();
|
||||
});
|
||||
|
@ -212,6 +217,11 @@ export default Component.extend(AuthProvider, ModalMixin, {
|
|||
let group = this.get('groups').findBy('id', groupId);
|
||||
group.set('isMember', true);
|
||||
|
||||
if (is.undefined(groupId) || is.undefined(userId)) {
|
||||
console.log(groupId, userId);
|
||||
return;
|
||||
}
|
||||
|
||||
this.get('groupSvc').join(groupId, userId).then(() => {
|
||||
this.filterUsers();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue