We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a133f6 commit 550107fCopy full SHA for 550107f
2 files changed
projects/social_platform/src/app/office/courses/task/task/task.component.html
@@ -15,7 +15,7 @@
15
[attr.data-id]="id"
16
[ngClass]="{
17
'progress__task--done': doneTasks().includes(id) || taskService.currentTaskDone(),
18
- 'progress__task--current': currentSubTaskId() === id
+ 'progress__task--current': isCurrent(id)
19
}"
20
>
21
<p class="text-body-12">{{ $index + 1 }}</p>
projects/social_platform/src/app/office/courses/task/task/task.component.ts
@@ -171,4 +171,8 @@ export class TaskComponent implements OnInit {
171
172
return [...new Set([...serverDone, ...localDone])];
173
});
174
+
175
+ isCurrent(subTaskId: number) {
176
+ return this.currentSubTaskId() === subTaskId;
177
+ }
178
}
0 commit comments