mirror of
https://github.com/documize/community.git
synced 2025-07-20 21:59:42 +02:00
Applied new layout to space admin screens
Applied the new master layout and UI controls to the following space admin screens: 1. General options. 2. Deletion. 3. Permissions. 4. Content blocks. Co-Authored-By: Harvey Kandola <harvey@documize.com>
This commit is contained in:
parent
d5b5e015d1
commit
60e92b63a9
15 changed files with 309 additions and 226 deletions
|
@ -30,6 +30,8 @@ export default Component.extend(Notifier, Modals, {
|
|||
searchText: '',
|
||||
inviteEmail: '',
|
||||
inviteMessage: '',
|
||||
showSpacePermExplain: false,
|
||||
showDocumentPermExplain: false,
|
||||
|
||||
isSpaceAdmin: computed('permissions', function() {
|
||||
return this.get('permissions.spaceOwner') || this.get('permissions.spaceManage');
|
||||
|
@ -146,6 +148,26 @@ export default Component.extend(Notifier, Modals, {
|
|||
},
|
||||
|
||||
actions: {
|
||||
toggleSpacePerms() {
|
||||
this.set('showSpacePermExplain', !this.get('showSpacePermExplain'));
|
||||
|
||||
if (this.showSpacePermExplain) {
|
||||
this.$(".space-perms").show();
|
||||
} else {
|
||||
this.$(".space-perms").hide();
|
||||
}
|
||||
},
|
||||
|
||||
toggleDocumentPerms() {
|
||||
this.set('showDocumentPermExplain', !this.get('showDocumentPermExplain'));
|
||||
|
||||
if (this.showDocumentPermExplain) {
|
||||
this.$(".document-perms").show();
|
||||
} else {
|
||||
this.$(".document-perms").hide();
|
||||
}
|
||||
},
|
||||
|
||||
onShowInviteModal() {
|
||||
this.modalOpen("#space-invite-user-modal", {"show": true}, '#space-invite-email');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue