mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix task header component duplicate (#3909)
This commit is contained in:
@@ -133,24 +133,10 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
key: 'created'
|
key: 'created'
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
new CardViewDateItemModel(
|
|
||||||
{
|
|
||||||
label: 'ADF_TASK_LIST.PROPERTIES.END_DATE',
|
|
||||||
value: this.taskDetails.endDate,
|
|
||||||
key: 'endDate'
|
|
||||||
}
|
|
||||||
),
|
|
||||||
new CardViewTextItemModel(
|
|
||||||
{
|
|
||||||
label: 'ADF_TASK_LIST.PROPERTIES.PARENT_NAME',
|
|
||||||
value: this.taskDetails.parentName,
|
|
||||||
key: 'parentName'
|
|
||||||
}
|
|
||||||
),
|
|
||||||
new CardViewTextItemModel(
|
new CardViewTextItemModel(
|
||||||
{
|
{
|
||||||
label: 'ADF_TASK_LIST.PROPERTIES.DURATION',
|
label: 'ADF_TASK_LIST.PROPERTIES.DURATION',
|
||||||
value: `${this.taskDetails.duration} ms`,
|
value: this.getTaskDuration(),
|
||||||
key: 'duration'
|
key: 'duration'
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
@@ -313,4 +299,8 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
isCompleted(): boolean {
|
isCompleted(): boolean {
|
||||||
return this.taskDetails && !!this.taskDetails.endDate;
|
return this.taskDetails && !!this.taskDetails.endDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTaskDuration(): string {
|
||||||
|
return this.taskDetails.duration ? `${this.taskDetails.duration} ms` : '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user