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