mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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),
|
||||
|
Reference in New Issue
Block a user