issue-25-manage-taskgroups-tree #26

Merged
sebastian merged 5 commits from issue-25-manage-taskgroups-tree into issue-25 2023-10-28 09:51:48 +02:00
2 changed files with 17 additions and 1 deletions
Showing only changes of commit 673faa5912 - Show all commits

View File

@ -42,7 +42,18 @@
<div class="taskgroup-overview"> <div class="taskgroup-overview">
<mat-action-list> <mat-action-list>
<button mat-list-item class="lightBlueBtn">Manage Taskgroups</button> <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> <button mat-list-item class="taskgroup-last-btn">Computer Grafik</button>
</mat-action-list> </mat-action-list>
</div> </div>

View File

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