Fix unspecifying and specifying templates (wrong callback)
All checks were successful
E2E Testing / test (push) Successful in 1m33s

This commit is contained in:
Sebastian Böckelmann 2024-03-22 20:09:34 +01:00
parent 2f469bc66d
commit 30a47bdd93
2 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,8 @@
<mat-panel-title>{{templateGamesystem.referenceGamesystem.componentName}}</mat-panel-title> <mat-panel-title>{{templateGamesystem.referenceGamesystem.componentName}}</mat-panel-title>
</mat-expansion-panel-header> </mat-expansion-panel-header>
<app-template-gamesystem-editor [gamesystem]="templateGamesystem" [scriptAccunts]="scriptAccounts" <app-template-gamesystem-editor [gamesystem]="templateGamesystem" [scriptAccunts]="scriptAccounts"
(onAddFirstTemplateState)="onAddFirstTemplateState($event)" (onSpecifyTemplate)="onSpecifyTemplate($event)"
(onRemoveLastTemplateState)="onRemoveLastTemplateState($event)"> (onUnspecifyTemplate)="onUnspecifyTemplate($event)">
</app-template-gamesystem-editor> </app-template-gamesystem-editor>
</mat-expansion-panel> </mat-expansion-panel>
</mat-accordion> </mat-accordion>

View File

@ -39,11 +39,11 @@ export class CharacterEditorComponent implements OnInit{
return this.character!.characterSpecificGamesystems.find(system => system.referenceGamesystem.componentName === referenceGamesystemName) return this.character!.characterSpecificGamesystems.find(system => system.referenceGamesystem.componentName === referenceGamesystemName)
} }
onRemoveLastTemplateState(templateGamesystem: TemplateGamesystem) { onUnspecifyTemplate(templateGamesystem: TemplateGamesystem) {
this.character!.removeCharacterSpecificGamesystem(templateGamesystem) this.character!.removeCharacterSpecificGamesystem(templateGamesystem)
} }
onAddFirstTemplateState(templateGamesystem: TemplateGamesystem) { onSpecifyTemplate(templateGamesystem: TemplateGamesystem) {
this.character!.addCharacterSpecificGamesystem(templateGamesystem) this.character!.addCharacterSpecificGamesystem(templateGamesystem)
} }