diff options
| author | Ali Rahimi <alirahimi818@gmail.com> | 2025-01-21 05:01:54 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-21 05:01:54 +0300 |
| commit | 6e9180a6659479ea0b872d3c1bc4727fdd8571bd (patch) | |
| tree | a69ae46d922ae6982e3067debcd23d899e7fa09c /web/html/common | |
| parent | 66fe84181b9c4e2f6c6be943a7f486b4308c32ff (diff) | |
Group Management of Subscription Clients (#2644)
* add group user with the same subscription id to all inbounds
* code format compare
* add await for reset client traffic
* en language changed
* added client traffic syncer job
* handle exist email duplicate in sub group
* multi reset and delete request for clients group
* add client traffic syncer setting option
* vi translate file updated
* auto open qr-modal bug fixed
Diffstat (limited to 'web/html/common')
| -rw-r--r-- | web/html/common/qrcode_modal.html | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 94e750c7..6558c347 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -23,13 +23,15 @@ </tr-qr-bg> </tr-qr-box> </template> - <template v-for="(row, index) in qrModal.qrcodes"> - <tr-qr-box class="qr-box"> - <a-tag color="green" class="qr-tag"><span>[[ row.remark ]]</span></a-tag> - <tr-qr-bg class="qr-bg"> - <canvas @click="copyToClipboard('qrCode-'+index, row.link)" :id="'qrCode-'+index" class="qr-cv"></canvas> - </tr-qr-bg> - </tr-qr-box> + <template v-if="!isJustSub"> + <template v-for="(row, index) in qrModal.qrcodes"> + <tr-qr-box class="qr-box"> + <a-tag color="green" class="qr-tag"><span>[[ row.remark ]]</span></a-tag> + <tr-qr-bg class="qr-bg"> + <canvas @click="copyToClipboard('qrCode-'+index, row.link)" :id="'qrCode-'+index" class="qr-cv"></canvas> + </tr-qr-bg> + </tr-qr-box> + </template> </template> </tr-qr-modal> </a-modal> @@ -43,12 +45,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 = []; if (this.inbound.protocol == Protocols.WIREGUARD) { @@ -76,7 +80,9 @@ delimiters: ['[[', ']]'], el: '#qrcode-modal', data: { - qrModal: qrModal, + qrModal: qrModal,get isJustSub(){ + return qrModal.isJustSub + } }, methods: { copyToClipboard(elementId, content) { |
