From 526426e2dda0b11c99b8e1c5e887d00884da01a4 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 23 May 2023 17:55:42 +0330 Subject: [PATCH] Alireza :100: Co-Authored-By: Alireza Ahmadi --- web/html/common/qrcode_modal.html | 2 +- web/html/xui/client_bulk_modal.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index acef9811..e6b7b998 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -96,7 +96,7 @@ updated() { if (qrModal.client.subId){ qrModal.subId = qrModal.client.subId; - this.setQrCode("qrCode-sub",this.genSubLink(this.subId)); + this.setQrCode("qrCode-sub",this.genSubLink(qrModal.subId)); } qrModal.qrcodes.forEach((element,index) => { this.setQrCode("qrCode-"+index, element.link); diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index 48eb2cbc..e4c46cc0 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -158,8 +158,8 @@ newClient = clientsBulkModal.newClient(clientsBulkModal.dbInbound.protocol); if (method == 4) newClient.email = ""; newClient.email += useNum ? prefix + i.toString() + postfix : prefix + postfix; - newClient.subId = clientsBulkModal.subId; - newClient.tgId = clientsBulkModal.tgId; + if (clientsBulkModal.subId.length > 0) newClient.subId = clientsBulkModal.subId; + if (clientsBulkModal.tgId.length > 0) newClient.tgId = clientsBulkModal.tgId; newClient.limitIp = clientsBulkModal.limitIp; newClient._totalGB = clientsBulkModal.totalGB; newClient._expiryTime = clientsBulkModal.expiryTime;