First Approach to visualize nested taskgroups

This commit is contained in:
Sebastian 2023-10-26 10:21:29 +02:00
parent 8b7354de51
commit 673faa5912
2 changed files with 17 additions and 1 deletions

View File

@ -42,7 +42,18 @@
<div class="taskgroup-overview">
<mat-action-list>
<button mat-list-item class="lightBlueBtn">Manage Taskgroups</button>
<button mat-list-item class="taskgroup-btn">Algorithmen II</button>
<div mat-list-item class="taskgroup-btn">
<button mat-list-item (click)="test()">Algorithmen II</button>
<div style=" background: aliceblue">
<mat-action-list style="margin-left: 20px;" *ngIf="test_Var">
<button mat-list-item class="taskgroup-btn">
Vorlesungen
</button>
</mat-action-list>
</div>
</div>
<button mat-list-item class="taskgroup-last-btn">Computer Grafik</button>
</mat-action-list>
</div>

View File

@ -13,6 +13,7 @@ export class DashboardComponent implements OnInit{
missedSchedules: boolean = true
schedules: ScheduleInfo[] = []
workedMinutesToday: number = 0
test_Var: boolean = false;
@ViewChild('activeSchedule') activeScheduleComponent: ActiveScheduleComponent | undefined
constructor(private scheduleService: ScheduleService) {
@ -42,4 +43,8 @@ export class DashboardComponent implements OnInit{
this.workedMinutesToday += stopActiveScheduleInfo.workedMinutes;
this.schedules = this.schedules.filter(schedule => schedule.scheduleID !== stopActiveScheduleInfo.schedule.scheduleID);
}
test() {
this.test_Var = !this.test_Var;
}
}