Fix unspecifying and specifying templates (wrong callback)
All checks were successful
E2E Testing / test (push) Successful in 1m33s
All checks were successful
E2E Testing / test (push) Successful in 1m33s
This commit is contained in:
parent
2f469bc66d
commit
30a47bdd93
@ -4,8 +4,8 @@
|
||||
<mat-panel-title>{{templateGamesystem.referenceGamesystem.componentName}}</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<app-template-gamesystem-editor [gamesystem]="templateGamesystem" [scriptAccunts]="scriptAccounts"
|
||||
(onAddFirstTemplateState)="onAddFirstTemplateState($event)"
|
||||
(onRemoveLastTemplateState)="onRemoveLastTemplateState($event)">
|
||||
(onSpecifyTemplate)="onSpecifyTemplate($event)"
|
||||
(onUnspecifyTemplate)="onUnspecifyTemplate($event)">
|
||||
</app-template-gamesystem-editor>
|
||||
</mat-expansion-panel>
|
||||
</mat-accordion>
|
||||
|
@ -39,11 +39,11 @@ export class CharacterEditorComponent implements OnInit{
|
||||
return this.character!.characterSpecificGamesystems.find(system => system.referenceGamesystem.componentName === referenceGamesystemName)
|
||||
}
|
||||
|
||||
onRemoveLastTemplateState(templateGamesystem: TemplateGamesystem) {
|
||||
onUnspecifyTemplate(templateGamesystem: TemplateGamesystem) {
|
||||
this.character!.removeCharacterSpecificGamesystem(templateGamesystem)
|
||||
}
|
||||
|
||||
onAddFirstTemplateState(templateGamesystem: TemplateGamesystem) {
|
||||
onSpecifyTemplate(templateGamesystem: TemplateGamesystem) {
|
||||
this.character!.addCharacterSpecificGamesystem(templateGamesystem)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user