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>2023-08-26 15:31:02 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-08-26 15:37:02 +0300
commit8489f5f528ea77fec9d6c2102251da9d16e95780 (patch)
tree32fa945019959d109a2a7ba5663435a0506c4d68 /web/html/xui/inbound_info_modal.html
parent872974910cc2ba7b736b2a78229eaed8ab9e62b3 (diff)
some changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/inbound_info_modal.html')
-rw-r--r--web/html/xui/inbound_info_modal.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html
index 42b169fc..c162c1af 100644
--- a/web/html/xui/inbound_info_modal.html
+++ b/web/html/xui/inbound_info_modal.html
@@ -264,14 +264,15 @@
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.dbInbound.remark, ( this.clientSettings ? this.clientSettings.email : '')].filter(Boolean).join('-');
address = this.dbInbound.address;
this.links = [];
if (this.inbound.tls && !ObjectUtil.isArrEmpty(this.inbound.stream.tls.settings.domains)) {
this.inbound.stream.tls.settings.domains.forEach((domain) => {
+ remarkText = [remark, domain.remark].filter(Boolean).join('-');
this.links.push({
- remark: remark + "-" + domain.remark,
- link: this.inbound.genLink(domain.domain, remark + "-" + domain.remark, index)
+ remark: remarkText,
+ link: this.inbound.genLink(domain.domain, remarkText, index)
});
});
} else {