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
path: root/web
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-02-17 21:10:25 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-02-17 21:10:25 +0300
commit4621933e5bad743aafd2b15bd72ed99069df99ad (patch)
treedcd318038376819346a1338a0fd0d0b2fa242e22 /web
parentfb76b2d5001311ad66515861d4f2be57951c4c6e (diff)
[outbound] set master outbound
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/html/xui/xray.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html
index 871631e0..10beaa43 100644
--- a/web/html/xui/xray.html
+++ b/web/html/xui/xray.html
@@ -406,6 +406,10 @@
<a-dropdown :trigger="['click']">
<a-icon @click="e => e.preventDefault()" type="more" style="font-size: 16px; text-decoration: bold;"></a-icon>
<a-menu slot="overlay" :theme="themeSwitcher.currentTheme">
+ <a-menu-item v-if="index>0" @click="setFirstOutbound(index)">
+ <a-icon type="vertical-align-top"></a-icon>
+ {{ i18n "pages.xray.rules.first"}}
+ </a-menu-item>
<a-menu-item @click="editOutbound(index)">
<a-icon type="edit"></a-icon>
{{ i18n "edit" }}
@@ -938,6 +942,11 @@
outbounds.splice(index,1);
this.outboundSettings = JSON.stringify(outbounds);
},
+ setFirstOutbound(index){
+ outbounds = this.templateSettings.outbounds;
+ outbounds.splice(0, 0, outbounds.splice(index, 1)[0]);
+ this.outboundSettings = JSON.stringify(outbounds);
+ },
async refreshOutboundTraffic() {
if (!this.refreshing) {
this.refreshing = true;