fix typo in the resource key (#3352)

This commit is contained in:
Denys Vuika
2018-05-21 15:33:11 +01:00
committed by Eugenio Romano
parent ff5d02b5b7
commit 266ad76ad9
13 changed files with 26 additions and 26 deletions

View File

@@ -69,7 +69,7 @@ describe('NodeActionsService', () => {
spyOn(contentDialogService, 'openCopyMoveDialog').and.returnValue(Observable.of([fakeNode]));
service.copyContent(fakeNode, 'allowed').subscribe((value) => {
expect(value).toBe('OPERATION.SUCCES.CONTENT.COPY');
expect(value).toBe('OPERATION.SUCCESS.CONTENT.COPY');
});
}));
@@ -78,7 +78,7 @@ describe('NodeActionsService', () => {
spyOn(contentDialogService, 'openCopyMoveDialog').and.returnValue(Observable.of([fakeNode]));
service.moveContent(fakeNode, 'allowed').subscribe((value) => {
expect(value).toBe('OPERATION.SUCCES.CONTENT.MOVE');
expect(value).toBe('OPERATION.SUCCESS.CONTENT.MOVE');
});
}));
@@ -87,7 +87,7 @@ describe('NodeActionsService', () => {
spyOn(contentDialogService, 'openCopyMoveDialog').and.returnValue(Observable.of([fakeNode]));
service.moveFolder(fakeNode, 'allowed').subscribe((value) => {
expect(value).toBe('OPERATION.SUCCES.FOLDER.MOVE');
expect(value).toBe('OPERATION.SUCCESS.FOLDER.MOVE');
});
}));
@@ -96,7 +96,7 @@ describe('NodeActionsService', () => {
spyOn(contentDialogService, 'openCopyMoveDialog').and.returnValue(Observable.of([fakeNode]));
service.copyFolder(fakeNode, 'allowed').subscribe((value) => {
expect(value).toBe('OPERATION.SUCCES.FOLDER.COPY');
expect(value).toBe('OPERATION.SUCCESS.FOLDER.COPY');
});
}));

View File

@@ -100,7 +100,7 @@ export class NodeActionsService {
const selection = selections[0];
this.documentListService[`${action}Node`].call(this.documentListService, contentEntry.id, selection.id)
.subscribe(
observable.next.bind(observable, `OPERATION.SUCCES.${type.toUpperCase()}.${action.toUpperCase()}`),
observable.next.bind(observable, `OPERATION.SUCCESS.${type.toUpperCase()}.${action.toUpperCase()}`),
observable.error.bind(observable)
);
},