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) }