mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
Small fixes
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ There are 3 artifacts that can be used to backup the application:
|
|||||||
| `/config/app.conf` | Configuration file | Doesn't contain settings from the Maintenance section |
|
| `/config/app.conf` | Configuration file | Doesn't contain settings from the Maintenance section |
|
||||||
| `/config/devices.csv` | CSV file containing device information | Doesn't contain historical data |
|
| `/config/devices.csv` | CSV file containing device information | Doesn't contain historical data |
|
||||||
|
|
||||||
## Data and cackup storage
|
## Data and backup storage
|
||||||
|
|
||||||
To decide on a backup strategy, check where the data is stored:
|
To decide on a backup strategy, check where the data is stored:
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1390,7 +1390,7 @@ input[readonly] {
|
|||||||
|
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
z-index: 99;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pa_spinner {
|
.pa_spinner {
|
||||||
@@ -1403,7 +1403,7 @@ input[readonly] {
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
z-index: 100;
|
z-index: 1001;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loadingSpinner
|
#loadingSpinner
|
||||||
|
|||||||
@@ -399,6 +399,7 @@ function handle_locked_DB(data)
|
|||||||
showSpinner()
|
showSpinner()
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
console.warn("Database locked - reload")
|
||||||
location.reload();
|
location.reload();
|
||||||
}, 5000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
@@ -1153,6 +1154,7 @@ function clearCache() {
|
|||||||
sessionStorage.clear();
|
sessionStorage.clear();
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
console.warn("clearChache called");
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
@@ -1291,6 +1293,7 @@ setTimeout(() => {
|
|||||||
// page refresh if configured
|
// page refresh if configured
|
||||||
const refreshTime = getSetting("UI_REFRESH");
|
const refreshTime = getSetting("UI_REFRESH");
|
||||||
if (refreshTime && refreshTime !== "0" && refreshTime !== "") {
|
if (refreshTime && refreshTime !== "0" && refreshTime !== "") {
|
||||||
|
console.log("Refreshing page becasue UI_REFRESH setting enabled.");
|
||||||
newTimerRefreshData(clearCache, parseInt(refreshTime)*1000);
|
newTimerRefreshData(clearCache, parseInt(refreshTime)*1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -460,7 +460,7 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
|
|||||||
|
|
||||||
// INPUT
|
// INPUT
|
||||||
|
|
||||||
console.log(codeName);
|
// console.log(codeName);
|
||||||
|
|
||||||
// Parse the setType JSON string into an object
|
// Parse the setType JSON string into an object
|
||||||
let inputHtml = '';
|
let inputHtml = '';
|
||||||
@@ -795,6 +795,7 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
console.log("isAppInitialized() returned false, reloading in 3s");
|
||||||
// reload the page if not initialized to give time the background tasks to finish
|
// reload the page if not initialized to give time the background tasks to finish
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user