mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Bring new UX to each admin view
This commit is contained in:
parent
ff1d737c68
commit
edb256e754
26 changed files with 357 additions and 324 deletions
|
@ -24,7 +24,7 @@ export default Component.extend(Notifier, {
|
|||
testSMTP: null,
|
||||
|
||||
actions: {
|
||||
saveSMTP(e) {
|
||||
saveSMTP() {
|
||||
if (this.get('SMTPHostEmptyError')) {
|
||||
$("#smtp-host").focus();
|
||||
return;
|
||||
|
|
|
@ -33,13 +33,11 @@ export default Component.extend(Notifier, Modals, {
|
|||
|
||||
init() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.loadData();
|
||||
},
|
||||
|
||||
didReceiveAttrs() {
|
||||
this._super(...arguments);
|
||||
|
||||
this.deleteSpace = {
|
||||
id: '',
|
||||
name: ''
|
||||
|
@ -55,6 +53,7 @@ export default Component.extend(Notifier, Modals, {
|
|||
actions: {
|
||||
onShow(id) {
|
||||
this.set('deleteSpace.id', id);
|
||||
this.modalOpen("#space-delete-modal", {"show": true}, '#delete-space-name');
|
||||
},
|
||||
|
||||
onDelete() {
|
||||
|
@ -91,13 +90,13 @@ export default Component.extend(Notifier, Modals, {
|
|||
|
||||
this.get('documentSvc').export(spec).then((htmlExport) => {
|
||||
this.get('browserSvc').downloadFile(htmlExport, 'documize.html');
|
||||
this.notifySuccess('Exported');
|
||||
this.notifySuccess('Export completed');
|
||||
});
|
||||
},
|
||||
|
||||
onOwner(spaceId) {
|
||||
this.get('spaceSvc').grantOwnerPermission(spaceId).then(() => { /* jshint ignore:line */
|
||||
this.notifySuccess('Saved');
|
||||
this.notifySuccess('Added as owner');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue