Explorar o código

bugfix: #272 if the dialog is already open, close it (#294)

James Read %!s(int64=2) %!d(string=hai) anos
pai
achega
ceb215a6dc
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      webui.dev/js/ExecutionDialog.js

+ 4 - 0
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()
   }