From c0bdbd5f40db941d08745e58431d63aa2c40f95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Sun, 18 Feb 2024 17:20:38 +0100 Subject: [PATCH] Edit existing Conditions --- .../scriptaccount-condition-editor.component.html | 2 +- .../scriptaccount-condition-editor.component.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.html b/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.html index 3c80567..6d3470a 100644 --- a/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.html +++ b/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.html @@ -37,7 +37,7 @@ - + diff --git a/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.ts b/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.ts index aa22f08..62c0fa6 100644 --- a/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.ts +++ b/src/app/editor/gamesystem-editor/scriptaccount-condition-editor/scriptaccount-condition-editor.component.ts @@ -41,8 +41,11 @@ export class ScriptaccountConditionEditorComponent implements OnInit{ this.dataSource.data = this.conditions; } this.addedCondition = undefined; - } else { - this.editedCondition = undefined; } + this.editedCondition = undefined; + } + + edit(condition: ScriptAccountCondition) { + this.editedCondition = condition; } }