OpenGamesystemEditor
All checks were successful
E2E Testing / test (push) Successful in 1m27s

This commit is contained in:
Sebastian Böckelmann 2024-02-09 20:17:53 +01:00
parent b4cc5304fd
commit d40f6061b1
2 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,7 @@
</mat-menu>
</div>
<app-script-account-overview *ngIf="openContent == ModelComponentType.SCRIPTACCOUNT" #scriptAccountOverview [gameModel]="gameModel" (onOpenScriptAccount)="openModelComponent($event)"></app-script-account-overview>
<app-gamescript-overview *ngIf="openContent == ModelComponentType.GAMESYTEM" #gamesystemOverview [gameModel]="gameModel"></app-gamescript-overview>
<app-gamescript-overview *ngIf="openContent == ModelComponentType.GAMESYTEM" #gamesystemOverview [gameModel]="gameModel" (openGamesystemEditor)="openModelComponent($event)"></app-gamescript-overview>
</mat-drawer>
<div class="example-sidenav-content">

View File

@ -86,5 +86,9 @@ export class GamescriptOverviewComponent implements OnInit {
openGamesystemEditor(node: FlatNode) {
const gamesystem: Gamesystem<State<any>, Transition<any>>| undefined= this.gameModel!.findGamesystem(node.name);
if(gamesystem != undefined) {
gamesystem.unsaved = false;
this.openGamesystemEmitter.emit(gamesystem);
}
}
}