From ceb215a6dc745e4be7b8597e928547543fe3ce06 Mon Sep 17 00:00:00 2001 From: James Read Date: Sat, 27 Apr 2024 00:02:17 +0100 Subject: [PATCH] bugfix: #272 if the dialog is already open, close it (#294) --- webui.dev/js/ExecutionDialog.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webui.dev/js/ExecutionDialog.js b/webui.dev/js/ExecutionDialog.js index 81a7a55..ba69531 100644 --- a/webui.dev/js/ExecutionDialog.js +++ b/webui.dev/js/ExecutionDialog.js @@ -75,6 +75,10 @@ export class ExecutionDialog { this.executionTick() }, 1000) + if (this.dlg.open) { + this.dlg.close() + } + this.dlg.showModal() }