diff options
author | Devaev Maxim <[email protected]> | 2019-06-08 04:10:56 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-06-08 04:11:19 +0300 |
commit | 445f2f9e63fb71cd6f9d721817a1d72dc761ff35 (patch) | |
tree | ddd1d3cca621b6d9a7d2883e5efc5a952e7adce8 /web | |
parent | 85c67ffcbb43e80f06ba97d96c4e327f0c152a68 (diff) |
improved msd state machine
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/msd.js | 2 |
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 ..."); |