mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-2200] Add dynamic title to attach-file-widget-dialog (#5594)
* [AAE-2200] Refactor content node component action * [AAE-2200] Add dynamique title to attach-file-widget-dialog * [AAE-2200] Add unit test
This commit is contained in:
@@ -36,8 +36,8 @@ export class ContentNodeSelectorComponent {
|
||||
|
||||
constructor(public translation: TranslationService,
|
||||
@Inject(MAT_DIALOG_DATA) public data: ContentNodeSelectorComponentData) {
|
||||
this.action = data.actionName.toUpperCase();
|
||||
this.buttonActionName = data.actionName ? `NODE_SELECTOR.${this.action}` : 'NODE_SELECTOR.CHOOSE';
|
||||
this.action = data.actionName ? data.actionName.toUpperCase() : 'CHOOSE';
|
||||
this.buttonActionName = `NODE_SELECTOR.${this.action}`;
|
||||
this.title = data.title;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user