mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
common feature-disabled class
This commit is contained in:
@@ -214,7 +214,7 @@
|
|||||||
</table>
|
</table>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<table class="msd-info msd-single-storage msd-feature-disabled">
|
<table class="msd-info msd-single-storage feature-disabled">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Current image:</td>
|
<td>Current image:</td>
|
||||||
<td id="msd-image-name" class="msd-info-value"></td>
|
<td id="msd-image-name" class="msd-info-value"></td>
|
||||||
@@ -228,15 +228,15 @@
|
|||||||
<td id="msd-storage-size" class="msd-info-value"></td>
|
<td id="msd-storage-size" class="msd-info-value"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<table class="msd-info msd-multi-storage msd-feature-disabled">
|
<table class="msd-info msd-multi-storage feature-disabled">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Image:</td>
|
<td>Image:</td>
|
||||||
<td width="100%"><select disabled id="msd-image-selector"></select></td>
|
<td width="100%"><select disabled id="msd-image-selector"></select></td>
|
||||||
<td><button disabled id="msd-remove-image">Remove</button></td>
|
<td><button disabled id="msd-remove-image">Remove</button></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<table class="msd-info msd-multi-storage msd-feature-disabled">
|
<table class="msd-info msd-multi-storage feature-disabled">
|
||||||
<tr class="msd-cdrom-emulation msd-feature-disabled">
|
<tr class="msd-cdrom-emulation feature-disabled">
|
||||||
<td>Emulate CD-ROM drive:</td>
|
<td>Emulate CD-ROM drive:</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="switch-box msd-cdrom-switch-box">
|
<div class="switch-box msd-cdrom-switch-box">
|
||||||
@@ -251,7 +251,7 @@
|
|||||||
</table>
|
</table>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div class="msd-multi-storage msd-feature-disabled">
|
<div class="msd-multi-storage feature-disabled">
|
||||||
<div class="menu-item-content-text">
|
<div class="menu-item-content-text">
|
||||||
<div id="msd-storage-progress" class="progress">
|
<div id="msd-storage-progress" class="progress">
|
||||||
<span id="msd-storage-progress-value" class="progress-value"></span>
|
<span id="msd-storage-progress-value" class="progress-value"></span>
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ div#msd-menu {
|
|||||||
width: 450px;
|
width: 450px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#msd-menu .msd-feature-disabled,
|
|
||||||
div#msd-menu div.msd-message,
|
div#msd-menu div.msd-message,
|
||||||
div#msd-menu input.msd-message {
|
div#msd-menu input.msd-message {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -283,13 +283,13 @@ export function Msd() {
|
|||||||
|
|
||||||
var __toggleMsdFeatures = function() {
|
var __toggleMsdFeatures = function() {
|
||||||
for (let el of $$$(".msd-single-storage")) {
|
for (let el of $$$(".msd-single-storage")) {
|
||||||
el.classList.toggle("msd-feature-disabled", __state.features.multi);
|
el.classList.toggle("feature-disabled", __state.features.multi);
|
||||||
}
|
}
|
||||||
for (let el of $$$(".msd-multi-storage")) {
|
for (let el of $$$(".msd-multi-storage")) {
|
||||||
el.classList.toggle("msd-feature-disabled", !__state.features.multi);
|
el.classList.toggle("feature-disabled", !__state.features.multi);
|
||||||
}
|
}
|
||||||
for (let el of $$$(".msd-cdrom-emulation")) {
|
for (let el of $$$(".msd-cdrom-emulation")) {
|
||||||
el.classList.toggle("msd-feature-disabled", !__state.features.cdrom);
|
el.classList.toggle("feature-disabled", !__state.features.cdrom);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user