From 81c9b4450bce3726733438fc860a2f7d4c242ea9 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Thu, 22 Feb 2024 23:12:26 +0330 Subject: minor changes Co-Authored-By: Alireza Ahmadi Co-Authored-By: Tara Rostami <132676256+TaraRostami@users.noreply.github.com> --- web/html/xui/inbounds.html | 4 ++-- web/html/xui/xray.html | 4 ++++ web/html/xui/xray_balancer_modal.html | 16 +++++++++------- 3 files changed, 15 insertions(+), 9 deletions(-) (limited to 'web/html') diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index a2365cde..117cbffb 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -186,7 +186,7 @@ - Port [[ r ]] + + Balancer Tag + [[ rule.balancerTag ]] + diff --git a/web/html/xui/xray_balancer_modal.html b/web/html/xui/xray_balancer_modal.html index 627aecf6..78b15fda 100644 --- a/web/html/xui/xray_balancer_modal.html +++ b/web/html/xui/xray_balancer_modal.html @@ -23,7 +23,8 @@ Round Robin - + [[ tag ]] @@ -74,17 +75,18 @@ this.balancerTags = balancerTags.filter((tag) => tag != balancer.tag); this.outboundTags = app.templateSettings.outbounds.filter((o) => !ObjectUtil.isEmpty(o.tag)).map(obj => obj.tag); this.isEdit = isEdit; - this.check() + this.check(); + this.checkSelector(); }, close() { - balancerModal.visible = false; - balancerModal.loading(false); + this.visible = false; + this.loading(false); }, loading(loading=true) { - balancerModal.confirmLoading = loading; + this.confirmLoading = loading; }, check() { - if (balancerModal.balancer.tag == '' || balancerModal.balancerTags.includes(balancerModal.balancer.tag)) { + if (this.balancer.tag == '' || this.balancerTags.includes(this.balancer.tag)) { this.duplicateTag = true; this.isValid = false; } else { @@ -93,7 +95,7 @@ } }, checkSelector() { - balancerModal.emptySelector = balancerModal.balancer.selector.length == 0; + this.emptySelector = this.balancer.selector.length == 0; } }; -- cgit v1.2.3