mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
don't clean msd image selector when offline
This commit is contained in:
parent
b5b6733b2a
commit
4f70060d5e
@ -320,14 +320,11 @@ export function Msd() {
|
|||||||
|
|
||||||
var __applyStateImageSelector = function() {
|
var __applyStateImageSelector = function() {
|
||||||
let s = __state;
|
let s = __state;
|
||||||
|
if (!(s && s.online) || s.storage.uploading || s.storage.downloading) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let el = $("msd-image-selector");
|
let el = $("msd-image-selector");
|
||||||
if (!(s && s.online)) {
|
|
||||||
el.options.length = 1; // Cleanup
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (s.storage.uploading || s.storage.downloading) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
el.options.length = 1;
|
el.options.length = 1;
|
||||||
|
|
||||||
let selected = "";
|
let selected = "";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user