From b7f476568bd6dd85a0e43591386a7d101357630b Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 18 Mar 2023 20:23:29 +0330 Subject: bug fixed --- web/html/common/qrcode_modal.html | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'web/html/common') diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 6c9afbb3..e535b401 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -32,15 +32,13 @@ } this.visible = true; qrModalApp.$nextTick(() => { - if (this.clipboard === null) { - this.clipboard = new ClipboardJS('#qr-modal-ok-btn', { - text: () => this.copyText, - }); - this.clipboard.on('success', () => { - app.$message.success('{{ i18n "copied" }}') - this.clipboard.destroy(); - }); - } + this.clipboard = new ClipboardJS('#qr-modal-ok-btn', { + text: () => this.copyText, + }); + this.clipboard.on('success', () => { + app.$message.success('{{ i18n "copied" }}') + this.clipboard.destroy(); + }); if (this.qrcode === null) { this.qrcode = new QRious({ element: document.querySelector('#qrCode'), -- cgit v1.2.3