Преглед изворни кода

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

James Read пре 2 година
родитељ
комит
ceb215a6dc
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      webui.dev/js/ExecutionDialog.js

+ 4 - 0
webui.dev/js/ExecutionDialog.js

@@ -75,6 +75,10 @@ export class ExecutionDialog {
       this.executionTick()
       this.executionTick()
     }, 1000)
     }, 1000)
 
 
+    if (this.dlg.open) {
+      this.dlg.close()
+    }
+
     this.dlg.showModal()
     this.dlg.showModal()
   }
   }