diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-03-17 01:01:14 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-03-17 01:01:14 +0300 |
| commit | bc56e637376142c370c31b17558fc3778a863bd2 (patch) | |
| tree | c79da826c4dc58ca6b024a419959ed3475599a10 /web/html/common/text_modal.html | |
| parent | a3e562896178fadc3df5a921669e75824180ccf8 (diff) | |
pack1
Diffstat (limited to 'web/html/common/text_modal.html')
| -rw-r--r-- | web/html/common/text_modal.html | 14 |
1 files changed, 4 insertions, 10 deletions
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"}} <a-modal id="text-modal" v-model="txtModal.visible" :title="txtModal.title" :closable="true" ok-text='{{ i18n "copy" }}' cancel-text='{{ i18n "close" }}' + :class="siderDrawer.isDarkTheme ? darkClass : ''" :ok-button-props="{attrs:{id:'txt-modal-ok-btn'}}"> <a-button v-if="!ObjectUtil.isEmpty(txtModal.fileName)" type="primary" style="margin-bottom: 10px;" - @click="downloader.download(txtModal.fileName, txtModal.content)"> + :href="'data:application/text;charset=utf-8,' + encodeURIComponent(txtModal.content)" :download="txtModal.fileName"> {{ i18n "download" }} [[ txtModal.fileName ]] </a-button> <a-input type="textarea" v-model="txtModal.content" @@ -31,15 +32,7 @@ }); this.clipboard.on('success', () => 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, |
