Open Editor to edit Gamesystems
Some checks failed
E2E Testing / test (push) Failing after 1m24s

This commit is contained in:
Sebastian Böckelmann 2024-02-10 10:17:21 +01:00
parent 64409bf846
commit 0c328e1fd6

View File

@ -70,10 +70,18 @@ export class AppComponent implements OnInit{
}
private onEditModelComponent() {
if(this.openContent == ModelComponentType.SCRIPTACCOUNT && this.scriptAccountOverview != undefined && this.scriptAccountOverview.selectedScriptAccount != undefined) {
this.editor!.openGameModelComponent(this.scriptAccountOverview.selectedScriptAccount!);
} else {
//Erweitere to Gamesystems
switch (this.openContent!) {
case ModelComponentType.SCRIPTACCOUNT: {
if(this.scriptAccountOverview!.selectedScriptAccount != undefined) {
this.editor!.openGameModelComponent(this.scriptAccountOverview!.selectedScriptAccount);
}
} break;
case ModelComponentType.GAMESYTEM: {
if(this.gamesystemOverview!.selectedGamesystem != undefined) {
const gamesystem = this.gameModel!.findGamesystem(this.gamesystemOverview!.selectedGamesystemName!);
this.editor!.openGameModelComponent(gamesystem!);
}
} break
}
}