From e887daf5438f39277ec5e6f80f8e719ac4123dc5 Mon Sep 17 00:00:00 2001 From: Thaum Rystra <9525416+ThaumRystra@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:26:01 +0200 Subject: [PATCH] Show resulting action on action dialog before committing --- .../ui/creature/actions/ActionDialog.vue | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/app/imports/client/ui/creature/actions/ActionDialog.vue b/app/imports/client/ui/creature/actions/ActionDialog.vue index 7380f51f..7929101b 100644 --- a/app/imports/client/ui/creature/actions/ActionDialog.vue +++ b/app/imports/client/ui/creature/actions/ActionDialog.vue @@ -24,6 +24,10 @@ @continue="continueAction" @set-input-ready="setInputReady" /> +
+
+ + Done + + + Next + +
@@ -134,10 +156,8 @@ export default { this.actionResult, this, { simulate: true, stepThrough} ).then(() => { this.actionDone = true; - // If we aren't stepping through close the dialog and apply the action - if (!this.actionResult._stepThrough) { - this.$store.dispatch('popDialogStack', this.actionResult); - } + this.actionBusy = false; + this.activeInput = undefined; }); }, stepAction() { @@ -164,7 +184,6 @@ export default { this.activeInput = undefined; this.activeInputParams = {}; this.userInputReady = false; - console.log({savedInput}) resolve(savedInput); } });