Netowrk error message

This commit is contained in:
Yuri Kuznetsov
2025-05-06 20:15:53 +03:00
parent ffbe6f5efa
commit aabe966bcf
2 changed files with 6 additions and 1 deletions
@@ -162,6 +162,7 @@
"Access": "Access",
"Timeout": "Timeout",
"No internet": "No internet",
"Network error": "Network error",
"Are you sure?": "Are you sure?",
"Record has been removed": "Record has been removed",
"Wrong username/password": "Wrong username/password",
+5 -1
View File
@@ -1308,7 +1308,11 @@ class App {
let msg = '';
if (!label) {
msg += this.language.translate('Error') + ' ' + xhr.status;
if (xhr.status === 0) {
msg += this.language.translate('Network error');
} else {
msg += this.language.translate('Error') + ' ' + xhr.status;
}
} else {
msg += this.language.translate(label);
}