From f514098abc2620d9bbd81f746f96958534a31316 Mon Sep 17 00:00:00 2001 From: Umair Ahamed Date: Mon, 18 May 2026 08:32:41 +1000 Subject: [PATCH] Add task dashboard header actions --- .../task-dashboard.component.html | 62 +++++++++++++++++++ .../task-dashboard.component.ts | 5 ++ 2 files changed, 67 insertions(+) diff --git a/src/app/projects/states/dashboard/directives/task-dashboard/task-dashboard.component.html b/src/app/projects/states/dashboard/directives/task-dashboard/task-dashboard.component.html index 931c569b6e..b8c881e562 100644 --- a/src/app/projects/states/dashboard/directives/task-dashboard/task-dashboard.component.html +++ b/src/app/projects/states/dashboard/directives/task-dashboard/task-dashboard.component.html @@ -1,3 +1,65 @@ +
+

+ {{ task.definition.name }} +

+ +
+ + + + + + + + + + + +
+
+
diff --git a/src/app/projects/states/dashboard/directives/task-dashboard/task-dashboard.component.ts b/src/app/projects/states/dashboard/directives/task-dashboard/task-dashboard.component.ts index 8446b9b113..cf0fe6c3f2 100644 --- a/src/app/projects/states/dashboard/directives/task-dashboard/task-dashboard.component.ts +++ b/src/app/projects/states/dashboard/directives/task-dashboard/task-dashboard.component.ts @@ -16,6 +16,7 @@ import {DashboardViews} from '../../selected-task.service'; export class TaskDashboardComponent implements OnInit, OnChanges { @Input() task: Task; @Input() pdfUrl: string; + @Input() unitRole: any; public DashboardViews = DashboardViews; @@ -75,6 +76,10 @@ export class TaskDashboardComponent implements OnInit, OnChanges { this.taskAssessmentModal.show(this.task); } + setCurrentView(view: DashboardViews): void { + this.selectedTaskService.currentView$.next(view); + } + downloadSubmission() { this.fileDownloader.downloadFile(this.urls.taskSubmissionPdfAttachmentUrl, 'submission.pdf'); }