diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-15 01:09:31 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2024-07-15 01:09:31 +0300 |
| commit | 816adfc3ea6ae6474e08fbba6476277e3d99707f (patch) | |
| tree | 181f56b2105910dd305d0da24c7e5b05098c6246 /web/html/xui/xray_balancer_modal.html | |
| parent | 0a95b0c7b297ef30f45d4c055cd7e7f8cc5b825e (diff) | |
fallback outbound in balancer
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/xray_balancer_modal.html')
| -rw-r--r-- | web/html/xui/xray_balancer_modal.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/web/html/xui/xray_balancer_modal.html b/web/html/xui/xray_balancer_modal.html index 5db48079..de2a0acb 100644 --- a/web/html/xui/xray_balancer_modal.html +++ b/web/html/xui/xray_balancer_modal.html @@ -25,13 +25,19 @@ <a-select-option value="leastPing">Least Ping</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> </a-select> </a-form-item> + <a-form-item label="Fallback"> + <a-select v-model="balancerModal.balancer.fallbackTag" clearable + :dropdown-class-name="themeSwitcher.currentTheme"> + <a-select-option v-for="tag in [ '', ...balancerModal.outboundTags]" :value="tag">[[ tag ]]</a-select-option> + </a-select> + </a-form-item> </table> </a-form> </a-modal> @@ -48,7 +54,8 @@ balancer: { tag: '', strategy: 'random', - selector: [] + selector: [], + fallbackTag: '' }, outboundTags: [], balancerTags:[], @@ -71,7 +78,8 @@ balancerModal.balancer = { tag: '', strategy: 'random', - selector: [] + selector: [], + fallbackTag: '' }; } this.balancerTags = balancerTags.filter((tag) => tag != balancer.tag); |
