mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix displaying unset task names
This commit is contained in:
@@ -317,10 +317,12 @@ export class FormOutcomeModel extends FormWidgetModel {
|
||||
|
||||
export class FormModel {
|
||||
|
||||
private UNSET_TASK_NAME: string = 'Nameless task';
|
||||
|
||||
private _id: string;
|
||||
private _name: string;
|
||||
private _taskId: string;
|
||||
private _taskName: string;
|
||||
private _taskName: string = this.UNSET_TASK_NAME;
|
||||
|
||||
get id(): string {
|
||||
return this._id;
|
||||
@@ -369,7 +371,7 @@ export class FormModel {
|
||||
this._id = json.id;
|
||||
this._name = json.name;
|
||||
this._taskId = json.taskId;
|
||||
this._taskName = json.taskName;
|
||||
this._taskName = json.taskName || this.UNSET_TASK_NAME;
|
||||
|
||||
let tabCache: WidgetModelCache<TabModel> = {};
|
||||
|
||||
|
Reference in New Issue
Block a user