issue-15 #21
@ -146,10 +146,12 @@ export class AppComponent implements OnInit{
 | 
			
		||||
    } else {
 | 
			
		||||
      parentGamesystemName = this.gamesystemOverview!.selectedGamesystemName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    const createdGamesystem = this.gameModel!.createGamesystem("New Gamesystem", parentGamesystemName);
 | 
			
		||||
    if(createdGamesystem != undefined) {
 | 
			
		||||
      this.gamesystemOverview!.refresh();
 | 
			
		||||
      this.editor?.openGameModelComponent(createdGamesystem!);
 | 
			
		||||
      this.editor?.openGameModelComponent(createdGamesystem);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -102,6 +102,7 @@ export class GamescriptOverviewComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  refresh() {
 | 
			
		||||
    this.dataSource.data = this.gameModel!.gamesystems;
 | 
			
		||||
    this.resetSelectedGamesystem()
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  resetSelectedGamesystem() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user