summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-03-07 18:14:05 +0200
committerMaxim Devaev <[email protected]>2023-03-07 18:14:05 +0200
commit544adcec6b9bc22f540f3ed91805fcbee8d0be14 (patch)
treec1b0ec05c4ac61d518d618b251ffe11702a77242 /web
parent9ecb7fb94d629919f71f4fd58e3502f041f1b7d9 (diff)
removable flag for image
Diffstat (limited to 'web')
-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 8ef89dcb..fae72e43 100644
--- a/web/share/js/kvm/msd.js
+++ b/web/share/js/kvm/msd.js
@@ -249,7 +249,7 @@ export function Msd() {
tools.el.setEnabled($("msd-image-selector"), (online && !s.drive.connected && !s.busy));
__applyStateImageSelector();
tools.el.setEnabled($("msd-download-button"), (online && s.drive.image && !s.drive.connected && !s.busy));
- tools.el.setEnabled($("msd-remove-button"), (online && s.drive.image && !s.drive.connected && !s.busy));
+ tools.el.setEnabled($("msd-remove-button"), (online && s.drive.image && s.drive.image.removable && !s.drive.connected && !s.busy));
tools.radio.setEnabled("msd-mode-radio", (online && s.features.cdrom && !s.drive.connected && !s.busy));
tools.radio.setValue("msd-mode-radio", `${Number(online && s.features.cdrom && s.drive.cdrom)}`);