Procházet zdrojové kódy

Report configuration save failures in ROI editors

SybexXx před 1 dnem
rodič
revize
3ca095b5ce
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      sd-card/html/edit_digits.html

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

@@ -373,7 +373,10 @@
         // _zwcat = getConfigCategory();
         cofcat["Digits"]["enabled"] = document.getElementById("Category_Digits_enabled").checked;
         WriteConfigININew();
-        await SaveConfigToServer(domainname);
+        if (!await SaveConfigToServer(domainname)) {
+            firework.launch('Configuration could not be saved!', 'danger', 10000);
+            return;
+        }
         UpdateROIs();
         document.getElementById("saveroi").disabled = true;