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-06-17 22:55:09 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-06-17 22:55:09 +0300
commit33082a271f716a85d2f39733bd546044c874a523 (patch)
tree4516bb48424db5098d5bdde5ded8f1fd485ac13b /web/html/xui
parent28ede36a103242317b2d1c7200a4c83d31bfc61e (diff)
check error in remove by core-api
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui')
-rw-r--r--web/html/xui/inbounds.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 08e38f96..d756c02e 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -1058,7 +1058,7 @@
resetTraffic(dbInboundId) {
dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);
this.$confirm({
- title: '{{ i18n "pages.inbounds.resetTraffic"}}',
+ title: '{{ i18n "pages.inbounds.resetTraffic"}}' + ' #' + dbInboundId,
content: '{{ i18n "pages.inbounds.resetTrafficContent"}}',
class: themeSwitcher.currentTheme,
okText: '{{ i18n "reset"}}',
@@ -1141,9 +1141,9 @@
infoModal.show(newDbInbound, index);
},
switchEnable(dbInboundId,state) {
- dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);
- dbInbound.enable = state;
- this.submit(`/panel/inbound/update/${dbInboundId}`, dbInbound);
+ dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);
+ dbInbound.enable = state;
+ this.submit(`/panel/inbound/update/${dbInboundId}`, dbInbound);
},
async switchEnableClient(dbInboundId, client) {
this.loading()
@@ -1168,7 +1168,7 @@
resetClientTraffic(client, dbInboundId, confirmation = true) {
if (confirmation){
this.$confirm({
- title: '{{ i18n "pages.inbounds.resetTraffic"}}',
+ title: '{{ i18n "pages.inbounds.resetTraffic"}}' + ' ' + client.email,
content: '{{ i18n "pages.inbounds.resetTrafficContent"}}',
class: themeSwitcher.currentTheme,
okText: '{{ i18n "reset"}}',
@@ -1285,12 +1285,12 @@
return this.onlineClients.includes(email);
},
isRemovable(dbInboundId) {
- return this.getInboundClients(this.dbInbounds.find(row => row.id === dbInboundId)).length > 1
+ return this.getInboundClients(this.dbInbounds.find(row => row.id === dbInboundId)).length > 1;
},
inboundLinks(dbInboundId) {
dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);
newDbInbound = this.checkFallback(dbInbound);
- txtModal.show('{{ i18n "pages.inbounds.export"}}', newDbInbound.genInboundLinks(), newDbInbound.remark);
+ txtModal.show('{{ i18n "pages.inbounds.export"}}', newDbInbound.genInboundLinks(this.remarkModel), newDbInbound.remark);
},
exportSubs(dbInboundId) {
const dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);