mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-07-01 20:42:07 +00:00
[outbound] set master outbound
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
parent
fb76b2d500
commit
4621933e5b
1 changed files with 9 additions and 0 deletions
|
@ -406,6 +406,10 @@
|
||||||
<a-dropdown :trigger="['click']">
|
<a-dropdown :trigger="['click']">
|
||||||
<a-icon @click="e => e.preventDefault()" type="more" style="font-size: 16px; text-decoration: bold;"></a-icon>
|
<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 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-menu-item @click="editOutbound(index)">
|
||||||
<a-icon type="edit"></a-icon>
|
<a-icon type="edit"></a-icon>
|
||||||
{{ i18n "edit" }}
|
{{ i18n "edit" }}
|
||||||
|
@ -938,6 +942,11 @@
|
||||||
outbounds.splice(index,1);
|
outbounds.splice(index,1);
|
||||||
this.outboundSettings = JSON.stringify(outbounds);
|
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() {
|
async refreshOutboundTraffic() {
|
||||||
if (!this.refreshing) {
|
if (!this.refreshing) {
|
||||||
this.refreshing = true;
|
this.refreshing = true;
|
||||||
|
|
Loading…
Reference in a new issue