diff options
| author | Ali Rahimi <alirahimi818@gmail.com> | 2024-01-21 17:26:19 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-21 17:26:19 +0300 |
| commit | 5c695ca6520c9cd9c44b18119a862f8f480969af (patch) | |
| tree | 56e739defaf1f1d0326cb30235b1cb6dcf2699e2 /web/html/common/qrcode_modal.html | |
| parent | e7ce8c8ddb8472695b296eac305c5ac9b8c1d3d8 (diff) | |
add group user with the same subscription id to all inbounds (#1650)
Diffstat (limited to 'web/html/common/qrcode_modal.html')
| -rw-r--r-- | web/html/common/qrcode_modal.html | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 3c4fd929..31b3450c 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -11,10 +11,12 @@ <a-divider>Subscription</a-divider> <div class="qr-bg"><canvas @click="copyToClipboard('qrCode-sub',genSubLink(qrModal.client.subId))" id="qrCode-sub" style="width: 100%; height: 100%;"></canvas></div> </template> - <a-divider>{{ i18n "pages.inbounds.client" }}</a-divider> - <template v-for="(row, index) in qrModal.qrcodes"> - <a-tag color="green" style="margin: 10px 0; display: block; text-align: center;">[[ row.remark ]]</a-tag> - <div class="qr-bg"><canvas @click="copyToClipboard('qrCode-'+index, row.link)" :id="'qrCode-'+index" style="width: 100%; height: 100%;"></canvas></div> + <a-divider v-if="!isJustSub">{{ i18n "pages.inbounds.client" }}</a-divider> + <template v-if="!isJustSub"> + <template v-for="(row, index) in qrModal.qrcodes"> + <a-tag color="green" style="margin: 10px 0; display: block; text-align: center;">[[ row.remark ]]</a-tag> + <div class="qr-bg"><canvas @click="copyToClipboard('qrCode-'+index, row.link)" :id="'qrCode-'+index" style="width: 100%; height: 100%;"></canvas></div> + </template> </template> </a-modal> @@ -27,12 +29,14 @@ qrcodes: [], clipboard: null, visible: false, + isJustSub: false, subId: '', - show: function (title = '', dbInbound, client) { + show: function (title = '', dbInbound, client, isJustSub = false) { this.title = title; this.dbInbound = dbInbound; this.inbound = dbInbound.toInbound(); this.client = client; + this.isJustSub = isJustSub; this.subId = ''; this.qrcodes = []; this.inbound.genAllLinks(this.dbInbound.remark, app.remarkModel, client).forEach(l => { @@ -53,6 +57,9 @@ el: '#qrcode-modal', data: { qrModal: qrModal, + get isJustSub(){ + return qrModal.isJustSub + } }, methods: { copyToClipboard(elmentId, content) { |
