1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 14:49:42 +02:00

i18n space strings

This commit is contained in:
McMatts 2022-03-08 13:05:30 -05:00
parent 97c4c927ac
commit 5e687f5ef4
7 changed files with 40 additions and 28 deletions

View file

@ -19,6 +19,7 @@ export default Component.extend(AuthMixin, Notifier, {
router: service(),
spaceSvc: service('folder'),
sectionSvc: service('section'),
i18n: service(),
showDeleteDialog: false,
deleteBlockId: '',
@ -54,7 +55,7 @@ export default Component.extend(AuthMixin, Notifier, {
this.get('sectionSvc').deleteBlock(id).then(() => {
this.set('deleteBlockId', '');
this.notifySuccess('Deleted');
this.notifySuccess(this.i18n.localize('deleted'));
this.get('sectionSvc').getSpaceBlocks(this.get('space.id')).then((blocks) => {
this.set('blocks', blocks);