Procházet zdrojové kódy

web: fix quota scan error message

Nicola Murino před 5 roky
rodič
revize
24914e90d1
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      templates/users.html

+ 5 - 1
templates/users.html

@@ -183,7 +183,11 @@
                         if ($xhr) {
                             var json = $xhr.responseJSON;
                             if (json) {
-                                txt += ": " + json.error;
+                                if (json.message) {
+                                    txt += ": " + json.message;
+                                } else if (json.error) {
+                                    txt += ": " + json.error;
+                                }
                             }
                         }
                         $('#errorTxt').text(txt);