mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
i18n admin strings
This commit is contained in:
parent
53297f7627
commit
4ab48cc67d
11 changed files with 65 additions and 34 deletions
|
@ -20,6 +20,7 @@ export default Component.extend(Notifier, Modals, {
|
|||
spaceSvc: service('folder'),
|
||||
browserSvc: service('browser'),
|
||||
documentSvc: service('document'),
|
||||
i18n: service(),
|
||||
spaces: null,
|
||||
|
||||
label: computed('model', function() {
|
||||
|
@ -75,7 +76,7 @@ export default Component.extend(Notifier, Modals, {
|
|||
this.set('deleteSpace.id', '');
|
||||
this.set('deleteSpace.name', '');
|
||||
this.loadData();
|
||||
this.notifySuccess('Deleted');
|
||||
this.notifySuccess(this.i18n.localize('deleted'));
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -86,17 +87,17 @@ export default Component.extend(Notifier, Modals, {
|
|||
filterType: 'space',
|
||||
};
|
||||
|
||||
this.notifyInfo('Export running...');
|
||||
this.notifyInfo(this.i18n.localize('space_admin_export_running'));
|
||||
|
||||
this.get('documentSvc').export(spec).then((htmlExport) => {
|
||||
this.get('browserSvc').downloadFile(htmlExport, 'documize.html');
|
||||
this.notifySuccess('Export completed');
|
||||
this.get('browserSvc').downloadFile(htmlExport, 'documize-community.html');
|
||||
this.notifySuccess(this.i18n.localize('completed'));
|
||||
});
|
||||
},
|
||||
|
||||
onOwner(spaceId) {
|
||||
this.get('spaceSvc').grantOwnerPermission(spaceId).then(() => { /* jshint ignore:line */
|
||||
this.notifySuccess('Added as owner');
|
||||
this.notifySuccess(this.i18n.localize('completed'));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue