From bc56e637376142c370c31b17558fc3778a863bd2 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Fri, 17 Mar 2023 01:31:14 +0330 Subject: pack1 --- web/html/common/text_modal.html | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'web/html/common/text_modal.html') diff --git a/web/html/common/text_modal.html b/web/html/common/text_modal.html index 0ae04a88..a0352c88 100644 --- a/web/html/common/text_modal.html +++ b/web/html/common/text_modal.html @@ -1,9 +1,10 @@ {{define "textModal"}} + :href="'data:application/text;charset=utf-8,' + encodeURIComponent(txtModal.content)" :download="txtModal.fileName"> {{ i18n "download" }} [[ txtModal.fileName ]] app.$message.success('{{ i18n "copied" }}')); } - if (this.qrcode === null) { - this.qrcode = new QRious({ - element: document.querySelector('#qrCode'), - size: 260, - value: content, - }); - } else { - this.qrcode.value = content; - } + }); }, close: function () { @@ -48,6 +41,7 @@ }; const textModalApp = new Vue({ + delimiters: ['[[', ']]'], el: '#text-modal', data: { txtModal: txtModal, -- cgit v1.2.3