Open Gamesystem Editor after Gamesystem Creation
Some checks failed
E2E Testing / test (push) Failing after 1m26s

This commit is contained in:
Sebastian Böckelmann 2024-02-10 10:12:28 +01:00
parent 8411d69bce
commit 635da80bf2

View File

@ -113,8 +113,11 @@ export class AppComponent implements OnInit{
} else { } else {
parentGamesystemName = this.gamesystemOverview!.selectedGamesystemName; parentGamesystemName = this.gamesystemOverview!.selectedGamesystemName;
} }
this.gameModel!.createGamesystem("New Gamesystem", parentGamesystemName); const createdGamesystem = this.gameModel!.createGamesystem("New Gamesystem", parentGamesystemName);
this.gamesystemOverview!.refresh(); if(createdGamesystem != undefined) {
this.gamesystemOverview!.refresh();
this.editor?.openGameModelComponent(createdGamesystem!);
}
} }
private getSelectedModelComponent(): ModelComponent | undefined { private getSelectedModelComponent(): ModelComponent | undefined {