Browse Source

[ui] fix loading function

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei 1 year ago
parent
commit
c83a1db0c8

+ 1 - 1
web/html/xui/client_bulk_modal.html

@@ -220,7 +220,7 @@
             clientsBulkModal.visible = false;
             clientsBulkModal.loading(false);
         },
-        loading(loading) {
+        loading(loading=true) {
             clientsBulkModal.confirmLoading = loading;
         },
     };

+ 1 - 1
web/html/xui/client_modal.html

@@ -72,7 +72,7 @@
             clientModal.visible = false;
             clientModal.loading(false);
         },
-        loading(loading) {
+        loading(loading=true) {
             clientModal.confirmLoading = loading;
         },
     };

+ 1 - 1
web/html/xui/inbound_modal.html

@@ -40,7 +40,7 @@
             inModal.visible = false;
             inModal.loading(false);
         },
-        loading(loading) {
+        loading(loading=true) {
             inModal.confirmLoading = loading;
         },
     };

+ 1 - 1
web/html/xui/warp_modal.html

@@ -108,7 +108,7 @@
             this.visible = false;
             this.loading(false);
         },
-        loading(loading) {
+        loading(loading=true) {
             this.confirmLoading = loading;
         },
         async getData(){

+ 1 - 1
web/html/xui/xray_balancer_modal.html

@@ -80,7 +80,7 @@
             balancerModal.visible = false;
             balancerModal.loading(false);
         },
-        loading(loading) {
+        loading(loading=true) {
             balancerModal.confirmLoading = loading;
         },
         check() {

+ 1 - 1
web/html/xui/xray_outbound_modal.html

@@ -42,7 +42,7 @@
             outModal.visible = false;
             outModal.loading(false);
         },
-        loading(loading) {
+        loading(loading=true) {
             outModal.confirmLoading = loading;
         },
         check(){

+ 1 - 1
web/html/xui/xray_reverse_modal.html

@@ -120,7 +120,7 @@
             reverseModal.visible = false;
             reverseModal.loading(false);
         },
-        loading(loading) {
+        loading(loading=true) {
             reverseModal.confirmLoading = loading;
         },
     };

+ 1 - 1
web/html/xui/xray_rule_modal.html

@@ -211,7 +211,7 @@
             ruleModal.visible = false;
             ruleModal.loading(false);
         },
-        loading(loading) {
+        loading(loading=true) {
             ruleModal.confirmLoading = loading;
         },
         getResult() {