Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-02-22 22:42:26 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-02-23 17:07:32 +0300
commit81c9b4450bce3726733438fc860a2f7d4c242ea9 (patch)
tree78dc3be6951eb58fed4288dab14734772cacd49d /web/html/xui/xray_balancer_modal.html
parentfc3ea2dd4bb81bd5a09fcae8bcc8d4958818eda4 (diff)
minor changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com> Co-Authored-By: Tara Rostami <132676256+TaraRostami@users.noreply.github.com>
Diffstat (limited to 'web/html/xui/xray_balancer_modal.html')
-rw-r--r--web/html/xui/xray_balancer_modal.html16
1 files changed, 9 insertions, 7 deletions
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 @@
<a-select-option value="roundRobin">Round Robin</a-select-option>
</a-select>
</a-form-item>
- <a-form-item label='{{ i18n "pages.xray.balancer.balancerSelectors" }}' has-feedback :validate-status="balancerModal.emptySelector? 'warning' : 'success'">
+ <a-form-item label='{{ i18n "pages.xray.balancer.balancerSelectors" }}' has-feedback
+ :validate-status="balancerModal.emptySelector? 'warning' : 'success'">
<a-select v-model="balancerModal.balancer.selector" mode="tags" @change="balancerModal.checkSelector()"
:dropdown-class-name="themeSwitcher.currentTheme">
<a-select-option v-for="tag in balancerModal.outboundTags" :value="tag">[[ tag ]]</a-select-option>
@@ -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;
}
};