From 59ea2645db827335a0689d2fb7aeeef4e52af52b Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Thu, 18 Sep 2025 13:56:04 +0200 Subject: new: subJsonEnable after this subEnable by default is true and subJsonEnable is false --- web/html/modals/inbound_info_modal.html | 4 ++-- web/html/modals/qrcode_modal.html | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'web/html/modals') diff --git a/web/html/modals/inbound_info_modal.html b/web/html/modals/inbound_info_modal.html index 5112ec1c..55d9919c 100644 --- a/web/html/modals/inbound_info_modal.html +++ b/web/html/modals/inbound_info_modal.html @@ -308,7 +308,7 @@ [[ infoModal.subLink ]] - + Json Link @@ -548,7 +548,7 @@ if (this.clientSettings) { if (this.clientSettings.subId) { this.subLink = this.genSubLink(this.clientSettings.subId); - this.subJsonLink = this.genSubJsonLink(this.clientSettings.subId); + this.subJsonLink = app.subSettings.subJsonEnable ? this.genSubJsonLink(this.clientSettings.subId) : ''; } } this.visible = true; diff --git a/web/html/modals/qrcode_modal.html b/web/html/modals/qrcode_modal.html index ef438b74..cdbb585b 100644 --- a/web/html/modals/qrcode_modal.html +++ b/web/html/modals/qrcode_modal.html @@ -30,7 +30,7 @@ - + {{ i18n "pages.settings.subSettings"}} Json @@ -262,7 +262,9 @@ if (qrModal.client && qrModal.client.subId) { qrModal.subId = qrModal.client.subId; this.setQrCode("qrCode-sub", this.genSubLink(qrModal.subId)); - this.setQrCode("qrCode-subJson", this.genSubJsonLink(qrModal.subId)); + if (app.subSettings.subJsonEnable) { + this.setQrCode("qrCode-subJson", this.genSubJsonLink(qrModal.subId)); + } } qrModal.qrcodes.forEach((element, index) => { this.setQrCode("qrCode-" + index, element.link); -- cgit v1.2.3