summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/msd.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/kvm/msd.js')
-rw-r--r--web/share/js/kvm/msd.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js
index 01504934..a7095c54 100644
--- a/web/share/js/kvm/msd.js
+++ b/web/share/js/kvm/msd.js
@@ -320,14 +320,11 @@ export function Msd() {
var __applyStateImageSelector = function() {
let s = __state;
- let el = $("msd-image-selector");
- if (!(s && s.online)) {
- el.options.length = 1; // Cleanup
- return;
- }
- if (s.storage.uploading || s.storage.downloading) {
+ if (!(s && s.online) || s.storage.uploading || s.storage.downloading) {
return;
}
+
+ let el = $("msd-image-selector");
el.options.length = 1;
let selected = "";