mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
rename
This commit is contained in:
parent
669fc608ed
commit
04284584fe
@ -187,7 +187,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="2"><img class="sign " src="/share/svg/warning.svg"></td>
|
<td rowspan="2"><img class="sign " src="/share/svg/warning.svg"></td>
|
||||||
<td style="line-height:1.5"><b>Mass Storage Device is offline</b></td>
|
<td style="line-height:1.5"><b>Mass Storage Drive is offline</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -4,7 +4,7 @@ li(id="msd-dropdown" class="right feature-disabled")
|
|||||||
| Mass Storage ↴
|
| Mass Storage ↴
|
||||||
div(data-dont-hide-menu id="msd-menu" class="menu")
|
div(data-dont-hide-menu id="msd-menu" class="menu")
|
||||||
div(id="msd-message-offline" class="hidden")
|
div(id="msd-message-offline" class="hidden")
|
||||||
+menu_message("warning", "Mass Storage Device is offline")
|
+menu_message("warning", "Mass Storage Drive is offline")
|
||||||
hr
|
hr
|
||||||
div(id="msd-message-image-broken" class="hidden")
|
div(id="msd-message-image-broken" class="hidden")
|
||||||
+menu_message("warning", "Current image is broken!")
|
+menu_message("warning", "Current image is broken!")
|
||||||
|
|||||||
@ -114,7 +114,7 @@ export function Msd() {
|
|||||||
var __uploadStateChange = function() {
|
var __uploadStateChange = function() {
|
||||||
if (__upload_http.readyState === 4) {
|
if (__upload_http.readyState === 4) {
|
||||||
if (__upload_http.status !== 200) {
|
if (__upload_http.status !== 200) {
|
||||||
wm.error("Can't upload image to the Mass Storage Device:<br>", __upload_http.responseText);
|
wm.error("Can't upload image to the Mass Storage Drive:<br>", __upload_http.responseText);
|
||||||
}
|
}
|
||||||
$("msd-select-new-image-file").value = "";
|
$("msd-select-new-image-file").value = "";
|
||||||
__image_file = null;
|
__image_file = null;
|
||||||
@ -156,7 +156,7 @@ export function Msd() {
|
|||||||
let el_input = $("msd-select-new-image-file");
|
let el_input = $("msd-select-new-image-file");
|
||||||
let image_file = (el_input.files.length ? el_input.files[0] : null);
|
let image_file = (el_input.files.length ? el_input.files[0] : null);
|
||||||
if (image_file && image_file.size > __state.storage.size) {
|
if (image_file && image_file.size > __state.storage.size) {
|
||||||
wm.error("New image is too big for your Mass Storage Device.<br>Maximum:", tools.formatSize(__state.storage.size));
|
wm.error("New image is too big for your Mass Storage Drive.<br>Maximum:", tools.formatSize(__state.storage.size));
|
||||||
el_input.value = "";
|
el_input.value = "";
|
||||||
image_file = null;
|
image_file = null;
|
||||||
}
|
}
|
||||||
@ -165,7 +165,7 @@ export function Msd() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var __clickResetButton = function() {
|
var __clickResetButton = function() {
|
||||||
wm.confirm("Are you sure you want to reset Mass Storage Device?").then(function(ok) {
|
wm.confirm("Are you sure you want to reset Mass Storage Drive?").then(function(ok) {
|
||||||
if (ok) {
|
if (ok) {
|
||||||
let http = tools.makeRequest("POST", "/api/msd/reset", function() {
|
let http = tools.makeRequest("POST", "/api/msd/reset", function() {
|
||||||
if (http.readyState === 4) {
|
if (http.readyState === 4) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user