From 30a47bdd932aa48fe9e1386a2ad9b971255cda6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Fri, 22 Mar 2024 20:09:34 +0100 Subject: [PATCH] Fix unspecifying and specifying templates (wrong callback) --- .../editor/character-editor/character-editor.component.html | 4 ++-- src/app/editor/character-editor/character-editor.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/editor/character-editor/character-editor.component.html b/src/app/editor/character-editor/character-editor.component.html index f1246c4..aa7c41a 100644 --- a/src/app/editor/character-editor/character-editor.component.html +++ b/src/app/editor/character-editor/character-editor.component.html @@ -4,8 +4,8 @@ {{templateGamesystem.referenceGamesystem.componentName}} + (onSpecifyTemplate)="onSpecifyTemplate($event)" + (onUnspecifyTemplate)="onUnspecifyTemplate($event)"> diff --git a/src/app/editor/character-editor/character-editor.component.ts b/src/app/editor/character-editor/character-editor.component.ts index d431c7b..e40f347 100644 --- a/src/app/editor/character-editor/character-editor.component.ts +++ b/src/app/editor/character-editor/character-editor.component.ts @@ -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) }