diff options
author | Devaev Maxim <[email protected]> | 2019-11-08 03:53:00 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-11-08 03:53:00 +0300 |
commit | fa40676136483dd287caf5df324ca429e5adbace (patch) | |
tree | aafa78f9d2f26c86bcb9ea484bc51ab4a158541f /web | |
parent | 13dcbc0c62461da626f7aea9712da593c45102df (diff) |
otg msd: notify about free space while uploading
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/msd.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js index 7b8654fa..d4b249c2 100644 --- a/web/share/js/kvm/msd.js +++ b/web/share/js/kvm/msd.js @@ -195,8 +195,10 @@ export function Msd() { $("msd-emulate-cdrom-checkbox").checked = (__state.online && __state.features.cdrom && __state.drive.cdrom); $("msd-new-image").style.display = (__image_file ? "block" : "none"); - $("msd-uploading-progress").setAttribute("data-label", "Waiting for upload ..."); - $("msd-uploading-progress-value").style.width = "0%"; + if (!__upload_http) { + $("msd-uploading-progress").setAttribute("data-label", "Waiting for upload ..."); + $("msd-uploading-progress-value").style.width = "0%"; + } $("msd-new-image-name").innerHTML = (__image_file ? __image_file.name : ""); $("msd-new-image-size").innerHTML = (__image_file ? __formatSize(__image_file.size) : ""); |