Răsfoiți Sursa

Report configuration save failures in ROI editors

SybexXx 1 zi în urmă
părinte
comite
349449da33
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      sd-card/html/edit_analog.html

+ 4 - 1
sd-card/html/edit_analog.html

@@ -352,7 +352,10 @@ The following settings are only used for easier setup, they are <b>not</b> persi
         //_zwcat = getConfigCategory();
         //_zwcat = getConfigCategory();
         cofcat["Analog"]["enabled"] = document.getElementById("Category_Analog_enabled").checked;
         cofcat["Analog"]["enabled"] = document.getElementById("Category_Analog_enabled").checked;
         WriteConfigININew();
         WriteConfigININew();
-        await SaveConfigToServer(domainname);
+        if (!await SaveConfigToServer(domainname)) {
+            firework.launch('Configuration could not be saved!', 'danger', 10000);
+            return;
+        }
         UpdateROIs();
         UpdateROIs();
         document.getElementById("saveroi").disabled = true;
         document.getElementById("saveroi").disabled = true;