Skip to content

Commit

Permalink
refactor: update card heading with task name
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvnpham committed Nov 4, 2023
1 parent 2e93914 commit 10dfa26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<mat-card appearance="outlined">
<mat-card-header>
<mat-card-title>Task Details</mat-card-title>
<mat-card-title>{{ taskDef?.name }}</mat-card-title>
</mat-card-header>
<mat-card-content>
<div class="markdown-to-pdf" [innerHTML]="taskDef?.description | marked"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class TaskDescriptionCardComponent {

constructor(
@Inject(gradeService) private GradeService: any,
@Inject(FileDownloaderService) private fileDownloader: FileDownloaderService
@Inject(FileDownloaderService) private fileDownloader: FileDownloaderService,
) {
this.grades = {
names: GradeService.grades,
Expand All @@ -28,14 +28,14 @@ export class TaskDescriptionCardComponent {
public downloadTaskSheet() {
this.fileDownloader.downloadFile(
this.taskDef.getTaskPDFUrl(true),
`${this.unit.code}-${this.taskDef.abbreviation}-TaskSheet.pdf`
`${this.unit.code}-${this.taskDef.abbreviation}-TaskSheet.pdf`,
);
}

public downloadResources() {
this.fileDownloader.downloadFile(
this.taskDef.getTaskResourcesUrl(true),
`${this.unit.code}-${this.taskDef.abbreviation}-TaskResources.zip`
`${this.unit.code}-${this.taskDef.abbreviation}-TaskResources.zip`,
);
}

Expand Down

0 comments on commit 10dfa26

Please sign in to comment.