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:
authorIvan Zorin <creator@localzet.com>2025-01-26 13:03:06 +0300
committerGitHub <noreply@github.com>2025-01-26 13:03:06 +0300
commitdd4c2adb37000593725ea47eedf86558ce4210fa (patch)
tree00545c83d235b135a393b4edec39769e68ea587c /web
parent2dec7f48f5857c86f85270952c7f1593d3bae77b (diff)
Fix non-MultiUser dbInbounds (#2649)
Diffstat (limited to 'web')
-rw-r--r--web/html/xui/client_modal.html16
1 files changed, 10 insertions, 6 deletions
diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html
index 8071e6b4..f2ea30d0 100644
--- a/web/html/xui/client_modal.html
+++ b/web/html/xui/client_modal.html
@@ -120,9 +120,11 @@
this.group.isGroup = true;
dbInbounds.forEach((dbInboundItem) => {
this.showProcess(dbInboundItem);
- this.addClient(this.inbound.protocol, this.clients);
- this.group.inbounds.push(dbInboundItem.id)
- this.group.clients.push(this.clients[this.index])
+ if (this.dbInbound.isMultiUser()) {
+ this.addClient(this.inbound.protocol, this.clients);
+ this.group.inbounds.push(dbInboundItem.id)
+ this.group.clients.push(this.clients[this.index])
+ }
})
this.group.currentClient = this.clients[this.index]
}
@@ -140,9 +142,11 @@
showProcess(dbInbound, index = null) {
this.dbInbound = new DBInbound(dbInbound);
this.inbound = dbInbound.toInbound();
- this.clients = this.inbound.clients;
- this.index = index === null ? this.clients.length : index;
- this.delayedStart = false;
+ if (this.dbInbound.isMultiUser()) {
+ this.clients = this.inbound.clients;
+ this.index = index === null ? this.clients.length : index;
+ this.delayedStart = false;
+ }
},
singleEditClientProcess(index) {
if (this.clients[index].expiryTime < 0) {