timemanager/frontend/src/app/dashboard/active-schedule/active-schedule.component.html
Sebastian Böckelmann a78be70a5d
All checks were successful
Java CI with Maven / test (push) Successful in 37s
Java CI with Maven / build-and-push-frontend (push) Successful in 8s
Java CI with Maven / build-and-push-backend (push) Successful in 10s
Use buttons instead of links to react already to first click
2024-03-14 07:26:04 +01:00

32 lines
1.3 KiB
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 class="btn btn-secondary" (click)="stopTask(false)">Stop</button>
<div class="btn-group">
<button type="button" class="btn btn-success">Finish</button>
<button type="button" class="btn btn-success dropdown-toggle dropdown-toggle-split" data-bs-toggle="dropdown" aria-expanded="false">
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><button class="dropdown-item" (click)="abortSchedule()">Abort</button></li>
<li><button class="dropdown-item" (click)="finishManual()">Set manually stop time</button></li>
</ul>
</div>
</mat-card-actions>
</mat-card>