mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
[WIP] space permissions UX
This commit is contained in:
parent
e10313b7cc
commit
1c08a7fbcf
8 changed files with 121 additions and 102 deletions
|
@ -109,11 +109,6 @@ export default Component.extend(NotifierMixin, {
|
|||
}
|
||||
});
|
||||
|
||||
this.get('folderService').savePermissions(folder.get('id'), payload).then(() => {
|
||||
this.showNotification('Saved permissions');
|
||||
this.get('router').transitionTo('folder', folder.get('id'), folder.get('slug'));
|
||||
});
|
||||
|
||||
if (is.not.undefined(hasEveryone)) {
|
||||
folder.markAsPublic();
|
||||
this.showNotification('Marked space as public');
|
||||
|
@ -126,6 +121,12 @@ export default Component.extend(NotifierMixin, {
|
|||
this.showNotification('Marked space as private');
|
||||
}
|
||||
}
|
||||
|
||||
this.get('folderService').savePermissions(folder.get('id'), payload).then(() => {
|
||||
this.showNotification('Saved permissions');
|
||||
$('#space-permission-modal').modal('hide');
|
||||
$('#space-permission-modal').modal('dispose');
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue