summaryrefslogtreecommitdiff
path: root/web/share
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-06-08 04:10:56 +0300
committerDevaev Maxim <[email protected]>2019-06-08 04:11:19 +0300
commit445f2f9e63fb71cd6f9d721817a1d72dc761ff35 (patch)
treeddd1d3cca621b6d9a7d2883e5efc5a952e7adce8 /web/share
parent85c67ffcbb43e80f06ba97d96c4e327f0c152a68 (diff)
improved msd state machine
Diffstat (limited to 'web/share')
-rw-r--r--web/share/js/kvm/msd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js
index 41bbd8be..5693e6f5 100644
--- a/web/share/js/kvm/msd.js
+++ b/web/share/js/kvm/msd.js
@@ -159,7 +159,7 @@ function Msd() {
wm.switchDisabled($("msd-select-new-image-button"), (!__state.online || __state.connected_to !== "kvm" || __state.busy || __upload_http));
wm.switchDisabled($("msd-upload-new-image-button"), (!__state.online || __state.connected_to !== "kvm" || __state.busy || !__image_file));
wm.switchDisabled($("msd-abort-uploading-button"), (!__state.online || !__upload_http));
- wm.switchDisabled($("msd-reset-button"), (!__state.online || __upload_http));
+ wm.switchDisabled($("msd-reset-button"), (!__state.enabled || __state.busy));
$("msd-new-image").style.display = (__image_file ? "block" : "none");
$("msd-progress").setAttribute("data-label", "Waiting for upload ...");