mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09: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,8 @@ import Component from '@ember/component';
|
|||
|
||||
export default Component.extend(AuthProvider, ModalMixin, Notifier, {
|
||||
groupSvc: service('group'),
|
||||
i18n: service(),
|
||||
|
||||
editUser: null,
|
||||
deleteUser: null,
|
||||
filter: '',
|
||||
|
@ -183,7 +185,7 @@ export default Component.extend(AuthProvider, ModalMixin, Notifier, {
|
|||
let cb = this.get('onDelete');
|
||||
cb(this.get('deleteUser.id'));
|
||||
|
||||
this.notifySuccess("Deleted user");
|
||||
this.notifySuccess(this.i18n.localize('deleted'));
|
||||
|
||||
return true;
|
||||
},
|
||||
|
@ -203,7 +205,7 @@ export default Component.extend(AuthProvider, ModalMixin, Notifier, {
|
|||
this.set('selectedUsers', []);
|
||||
this.set('hasSelectedUsers', false);
|
||||
|
||||
this.notifySuccess("Deleted selected users");
|
||||
this.notifySuccess(this.i18n.localize('deleted'));
|
||||
|
||||
this.modalClose('#admin-user-delete-modal');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue