From 445f2f9e63fb71cd6f9d721817a1d72dc761ff35 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 8 Jun 2019 04:10:56 +0300 Subject: improved msd state machine --- web/share/js/kvm/msd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') 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 ..."); -- cgit v1.2.3