issue-15 #21

Merged
sebastian merged 60 commits from issue-15 into main 2024-03-22 07:46:49 +00:00
3 changed files with 12 additions and 2 deletions
Showing only changes of commit e8687ae95e - Show all commits

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
}
} }