diff options
| author | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-08 22:08:44 +0300 |
|---|---|---|
| committer | Alireza Ahmadi <alireza7@gmail.com> | 2023-12-08 22:08:44 +0300 |
| commit | 35feef650f793ffbec2af51a18fd25d8b0beefb1 (patch) | |
| tree | f36cac6a4c188118418b53f45c681e7a4e821e6d /web/html/common | |
| parent | 38013e5ea942f35d7f187b476c2f8914281b6c18 (diff) | |
import-export inbound #1300
Diffstat (limited to 'web/html/common')
| -rw-r--r-- | web/html/common/prompt_modal.html | 1 | ||||
| -rw-r--r-- | web/html/common/text_modal.html | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/web/html/common/prompt_modal.html b/web/html/common/prompt_modal.html index a61b4454..edfad682 100644 --- a/web/html/common/prompt_modal.html +++ b/web/html/common/prompt_modal.html @@ -1,7 +1,6 @@ {{define "promptModal"}} <a-modal id="prompt-modal" v-model="promptModal.visible" :title="promptModal.title" :closable="true" @ok="promptModal.ok" :mask-closable="false" - :class="themeSwitcher.darkCardClass" :ok-text="promptModal.okText" cancel-text='{{ i18n "cancel" }}' :class="themeSwitcher.currentTheme"> <a-input id="prompt-modal-input" :type="promptModal.type" v-model="promptModal.value" diff --git a/web/html/common/text_modal.html b/web/html/common/text_modal.html index 2b455ae4..4fe2f175 100644 --- a/web/html/common/text_modal.html +++ b/web/html/common/text_modal.html @@ -31,7 +31,10 @@ this.clipboard = new ClipboardJS('#txt-modal-ok-btn', { text: () => this.content, }); - this.clipboard.on('success', () => app.$message.success('{{ i18n "copied" }}')); + this.clipboard.on('success', () => { + app.$message.success('{{ i18n "copied" }}') + this.close(); + }); } }); }, |
