Restore functionality, which was removed the brainless way (#2725)

This commit is contained in:
Popovics András
2017-11-24 14:17:00 +00:00
committed by Eugenio Romano
parent feb0e17656
commit 92ccf36eb4
4 changed files with 15 additions and 2 deletions

View File

@@ -67,6 +67,9 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
@Input()
showHeader: boolean = true;
@Input()
showHeaderContent: boolean = true;
@Input()
showInvolvePeople: boolean = true;
@@ -320,6 +323,10 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
this.loadDetails(taskId);
}
toggleHeaderContent(): void {
this.showHeaderContent = !this.showHeaderContent;
}
isCompletedTask(): boolean {
return this.taskDetails && this.taskDetails.endDate ? true : undefined;
}