From a33ff32e3d8ca56477d416fa23d38d1e1891b35d Mon Sep 17 00:00:00 2001 From: r0zbeh Date: Thu, 20 Jul 2023 12:52:19 +0330 Subject: [PATCH] Change Remark write in client link --- web/html/common/qrcode_modal.html | 2 +- web/html/xui/inbound_info_modal.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 2945702..986c5bb 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -35,7 +35,7 @@ this.inbound = dbInbound.toInbound(); settings = JSON.parse(this.inbound.settings); this.client = settings.clients[clientIndex]; - remark = this.dbInbound.remark + ( this.client ? "-" + this.client.email : ''); + remark = this.client ? this.client.email : ''; address = this.dbInbound.address; this.subId = ''; this.qrcodes = []; diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index f59e4c7..7e394eb 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -260,7 +260,7 @@ this.clientSettings = this.settings.clients ? Object.values(this.settings.clients)[index] : null; this.isExpired = this.inbound.isExpiry(index); this.clientStats = this.settings.clients ? this.dbInbound.clientStats.find(row => row.email === this.clientSettings.email) : []; - remark = this.dbInbound.remark + ( this.clientSettings ? "-" + this.clientSettings.email : ''); + remark = this.clientSettings ? this.clientSettings.email : ''; address = this.dbInbound.address; this.links = []; if (this.inbound.tls && !ObjectUtil.isArrEmpty(this.inbound.stream.tls.settings.domains)) {