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