20 lines
943 B
HTML
20 lines
943 B
HTML
<mat-card class="green-card" *ngIf="activeSchedule == undefined">
|
|
<mat-card-content>
|
|
<p>Currently there is no task in progress.</p>
|
|
<a class="btn-link" routerLink="/forgotten">Did you forget to start an activity?</a>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<mat-card *ngIf="activeSchedule != undefined">
|
|
<mat-card-header>
|
|
<mat-card-title><a routerLink="/" class="link-no-deco">{{activeSchedule!.task.taskName}}</a></mat-card-title>
|
|
</mat-card-header>
|
|
<mat-card-content>
|
|
<span *ngFor="let taskgroupPath of activeSchedule!.taskgroupPath">{{taskgroupPath.taskgroupName}} /</span>
|
|
<p class="gray-text">Running for {{displayTime}}</p>
|
|
</mat-card-content>
|
|
<mat-card-actions>
|
|
<button mat-raised-button class="grayBtn" (click)="stopTask(false)">Stop</button>
|
|
<button mat-raised-button class="greenBtn" *ngIf="activeSchedule!.task.finishable" (click)="stopTask(true)">Finish</button>
|
|
</mat-card-actions>
|
|
</mat-card>
|