[AAE-2200] Fix upload dialog title (#5583)

* [AAE-2200] Fix dialog title

* [AAE-2200] Title from translation ressources and refactor

* [AAE-2200] Add unit test for title

* [AAE-2200] Fix lint in test
This commit is contained in:
Baptiste Mahé
2020-04-01 15:56:21 +02:00
committed by GitHub
parent 53bddad833
commit 1e018b9476
5 changed files with 41 additions and 13 deletions

View File

@@ -136,10 +136,8 @@ export class ContentNodeDialogService {
complete: this.close.bind(this)
});
const title = this.getTitleTranslation(action, contentEntry.name);
const data: ContentNodeSelectorComponentData = {
title: title,
title: this.getTitleTranslation(action, contentEntry.name),
actionName: action,
currentFolderId: contentEntry.parentId,
imageResolver: this.imageResolver.bind(this),
@@ -181,7 +179,7 @@ export class ContentNodeDialogService {
});
const data: ContentNodeSelectorComponentData = {
title: `${action} '${contentEntry.name}' to ...`,
title: this.getTitleTranslation(action, contentEntry.name),
actionName: action,
currentFolderId: contentEntry.id,
imageResolver: this.imageResolver.bind(this),
@@ -208,7 +206,7 @@ export class ContentNodeDialogService {
});
const data: ContentNodeSelectorComponentData = {
title: `${action} '${contentEntry.name}' to ...`,
title: this.getTitleTranslation(action, contentEntry.name),
actionName: action,
currentFolderId: contentEntry.id,
imageResolver: this.imageResolver.bind(this),