This commit is contained in:
Devaev Maxim 2020-09-09 11:35:07 +03:00
parent 669fc608ed
commit 04284584fe
3 changed files with 5 additions and 5 deletions

View File

@ -187,7 +187,7 @@
<table>
<tr>
<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>
</table>
</div>

View File

@ -4,7 +4,7 @@ li(id="msd-dropdown" class="right feature-disabled")
| Mass Storage &#8628;
div(data-dont-hide-menu id="msd-menu" class="menu")
div(id="msd-message-offline" class="hidden")
+menu_message("warning", "Mass Storage Device is offline")
+menu_message("warning", "Mass Storage Drive is offline")
hr
div(id="msd-message-image-broken" class="hidden")
+menu_message("warning", "Current image is broken!")

View File

@ -114,7 +114,7 @@ export function Msd() {
var __uploadStateChange = function() {
if (__upload_http.readyState === 4) {
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 = "";
__image_file = null;
@ -156,7 +156,7 @@ export function Msd() {
let el_input = $("msd-select-new-image-file");
let image_file = (el_input.files.length ? el_input.files[0] : null);
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 = "";
image_file = null;
}
@ -165,7 +165,7 @@ export function Msd() {
};
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) {
let http = tools.makeRequest("POST", "/api/msd/reset", function() {
if (http.readyState === 4) {