summaryrefslogtreecommitdiff
path: root/web/share/js/kvm
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-07-28 10:25:16 +0300
committerMaxim Devaev <[email protected]>2021-07-28 10:25:16 +0300
commite43cbb667f26c6e61527fb2d58373a0822f3153a (patch)
tree2431eccd8219d1442628db3b8956434b3ef07e2c /web/share/js/kvm
parent75e9b673bcf8226b992e15cbd0a09e1b2ad465c0 (diff)
another msd js fixes
Diffstat (limited to 'web/share/js/kvm')
-rw-r--r--web/share/js/kvm/msd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js
index 0935161d..6f1fb8f0 100644
--- a/web/share/js/kvm/msd.js
+++ b/web/share/js/kvm/msd.js
@@ -205,7 +205,7 @@ export function Msd() {
wm.setElementEnabled($("msd-upload-new-image-button"), (online && !s.drive.connected && __image_file && !s.busy));
wm.setElementEnabled($("msd-abort-uploading-button"), (online && __upload_http));
- wm.setElementEnabled($("msd-reset-button"), (s.enabled && !s.busy));
+ wm.setElementEnabled($("msd-reset-button"), (s && s.enabled && !s.busy));
tools.hiddenSetVisible($("msd-submenu-new-image"), (online && __image_file));
$("msd-new-image-name").innerHTML = ((online && __image_file) ? __image_file.name : "");
@@ -241,7 +241,7 @@ export function Msd() {
}
}
- tools.hiddenSetVisible($("msd-message-offline"), !online);
+ tools.hiddenSetVisible($("msd-message-offline"), (s && !s.online));
tools.hiddenSetVisible($("msd-message-image-broken"),
(online && s.drive.image && !s.drive.image.complete && !s.storage.uploading));
tools.hiddenSetVisible($("msd-message-too-big-for-cdrom"),