1
0
Fork 0
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:
sauls8t 2018-03-02 11:28:45 +00:00
parent f0aed0ba77
commit 99f0a16d71
3 changed files with 17 additions and 3 deletions

View file

@ -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();
});