mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Reload permissions matrix after invites sent
This commit is contained in:
parent
50c7fabeb6
commit
f884926df7
1 changed files with 11 additions and 6 deletions
|
@ -38,6 +38,16 @@ export default Component.extend(Notifier, Modals, {
|
|||
didReceiveAttrs() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.set('searchText', '');
|
||||
|
||||
if (this.get('inviteMessage').length === 0) {
|
||||
this.set('inviteMessage', this.getDefaultInvitationMessage());
|
||||
}
|
||||
|
||||
this.load();
|
||||
},
|
||||
|
||||
load() {
|
||||
let spacePermissions = A([]);
|
||||
let constants = this.get('constants');
|
||||
|
||||
|
@ -83,12 +93,6 @@ export default Component.extend(Notifier, Modals, {
|
|||
this.set('spacePermissions', spacePermissions.sortBy('who', 'name'));
|
||||
});
|
||||
});
|
||||
|
||||
this.set('searchText', '');
|
||||
|
||||
if (this.get('inviteMessage').length === 0) {
|
||||
this.set('inviteMessage', this.getDefaultInvitationMessage());
|
||||
}
|
||||
},
|
||||
|
||||
permissionRecord(who, whoId, name) {
|
||||
|
@ -267,6 +271,7 @@ export default Component.extend(Notifier, Modals, {
|
|||
this.showDone();
|
||||
this.$('#space-invite-email').removeClass('is-invalid');
|
||||
this.modalClose("#space-invite-user-modal");
|
||||
this.load();
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue