From 0f82b6edac076c0d1b404ab9e2ad7523a492e0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Sat, 10 Feb 2024 12:03:44 +0100 Subject: [PATCH] Mark Gamesystem as unsaved after state change --- .../simple-state-editor/simple-state-editor.component.html | 6 +++--- .../simple-state-editor/simple-state-editor.component.ts | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html index e2e6dc8..f723e19 100644 --- a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html +++ b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html @@ -4,7 +4,7 @@ {{state.stateLabel}} - + warningMissing State-Label Information @@ -17,7 +17,7 @@

{{element.stateDescription}}

Description - + @@ -32,7 +32,7 @@ done close - + diff --git a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.ts b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.ts index cbd80ee..76c5bef 100644 --- a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.ts +++ b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.ts @@ -76,7 +76,11 @@ export class SimpleStateEditorComponent implements OnInit{ this.dataSource.data = this.gamesystem.states; this.editedElement = simpleState; this.expandedElement = simpleState; + this.onStateChange(); } } } + onStateChange() { + this.gamesystem!.onModifyContent(); + } }