From c83a1db0c8dc3d8e6c5d59372f992f0668cef433 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 21 Feb 2024 15:09:56 +0330 Subject: [PATCH] [ui] fix loading function Co-Authored-By: Alireza Ahmadi --- web/html/xui/client_bulk_modal.html | 2 +- web/html/xui/client_modal.html | 2 +- web/html/xui/inbound_modal.html | 2 +- web/html/xui/warp_modal.html | 2 +- web/html/xui/xray_balancer_modal.html | 2 +- web/html/xui/xray_outbound_modal.html | 2 +- web/html/xui/xray_reverse_modal.html | 2 +- web/html/xui/xray_rule_modal.html | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index 9ae84e5a..cb05cdc3 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/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; }, }; diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html index 4b270607..83fa71a3 100644 --- a/web/html/xui/client_modal.html +++ b/web/html/xui/client_modal.html @@ -72,7 +72,7 @@ clientModal.visible = false; clientModal.loading(false); }, - loading(loading) { + loading(loading=true) { clientModal.confirmLoading = loading; }, }; diff --git a/web/html/xui/inbound_modal.html b/web/html/xui/inbound_modal.html index ab42e09c..fa89fada 100644 --- a/web/html/xui/inbound_modal.html +++ b/web/html/xui/inbound_modal.html @@ -40,7 +40,7 @@ inModal.visible = false; inModal.loading(false); }, - loading(loading) { + loading(loading=true) { inModal.confirmLoading = loading; }, }; diff --git a/web/html/xui/warp_modal.html b/web/html/xui/warp_modal.html index 38310a69..7fa38eb1 100644 --- a/web/html/xui/warp_modal.html +++ b/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(){ diff --git a/web/html/xui/xray_balancer_modal.html b/web/html/xui/xray_balancer_modal.html index 86573bb7..627aecf6 100644 --- a/web/html/xui/xray_balancer_modal.html +++ b/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() { diff --git a/web/html/xui/xray_outbound_modal.html b/web/html/xui/xray_outbound_modal.html index 2941e096..fd9cf99c 100644 --- a/web/html/xui/xray_outbound_modal.html +++ b/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(){ diff --git a/web/html/xui/xray_reverse_modal.html b/web/html/xui/xray_reverse_modal.html index 724c9825..1fd18c41 100644 --- a/web/html/xui/xray_reverse_modal.html +++ b/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; }, }; diff --git a/web/html/xui/xray_rule_modal.html b/web/html/xui/xray_rule_modal.html index 07cc3217..0c4f23b7 100644 --- a/web/html/xui/xray_rule_modal.html +++ b/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() {