Reset Gamesystem Selection
All checks were successful
E2E Testing / test (push) Successful in 1m31s

This commit is contained in:
Sebastian Böckelmann 2024-03-18 17:33:24 +01:00
parent 8c39762ede
commit e8687ae95e
3 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<div class="container"> <div class="container">
<div class="full-height-container"> <div class="full-height-container" >
<button mat-icon-button class="small-icon-button" [ngClass]="openContent === ModelComponentType.SCRIPTACCOUNT ? 'selected':''" <button mat-icon-button class="small-icon-button" [ngClass]="openContent === ModelComponentType.SCRIPTACCOUNT ? 'selected':''"
(click)="openScriptAccountsOverview()"><mat-icon>inventory_2</mat-icon></button> (click)="openScriptAccountsOverview()"><mat-icon>inventory_2</mat-icon></button>
<button mat-icon-button class="small-icon-button" [ngClass]="openContent === ModelComponentType.GAMESYTEM ? 'selected':''" <button mat-icon-button class="small-icon-button" [ngClass]="openContent === ModelComponentType.GAMESYTEM ? 'selected':''"
@ -9,7 +9,7 @@
<mat-drawer-container class="example-container" autosize> <mat-drawer-container class="example-container" autosize>
<mat-drawer #drawer class="example-sidenav" mode="side"> <mat-drawer #drawer class="example-sidenav" mode="side">
<div class="sidenav-header"> <div class="sidenav-header" (click)="resetSelection()">
<button mat-button [matMenuTriggerFor]="contentMenu"> <button mat-button [matMenuTriggerFor]="contentMenu">
<span class="mat-button-wrapper">{{ModelComponentTypeUtillities.toString(openContent)}} <span class="mat-button-wrapper">{{ModelComponentTypeUtillities.toString(openContent)}}
<mat-icon class="mat-icon">expand_more</mat-icon> <mat-icon class="mat-icon">expand_more</mat-icon>

View File

@ -221,4 +221,10 @@ export class AppComponent implements OnInit{
this.gamesystemOverview!.refresh(); this.gamesystemOverview!.refresh();
} }
} }
resetSelection() {
if(this.gamesystemOverview != undefined) {
this.gamesystemOverview.resetSelectedGamesystem()
}
}
} }

View File

@ -103,4 +103,8 @@ export class GamescriptOverviewComponent implements OnInit {
refresh() { refresh() {
this.dataSource.data = this.gameModel!.gamesystems; this.dataSource.data = this.gameModel!.gamesystems;
} }
resetSelectedGamesystem() {
this.selectedGamesystem = undefined
}
} }