diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-07 10:27:33 +0300 |
|---|---|---|
| committer | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-07 10:27:33 +0300 |
| commit | 26bf693dbdc2db0222ee37615e353f7ca1fdd3c1 (patch) | |
| tree | e5ad1ba0a99242049934892062db0d1762f0de1a /web/html/common/text_modal.html | |
| parent | 7483fb2ec57055f5f4f0fb14e559a87a5c2106f9 (diff) | |
refactor: move copy function to utils.js
Diffstat (limited to 'web/html/common/text_modal.html')
| -rw-r--r-- | web/html/common/text_modal.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/web/html/common/text_modal.html b/web/html/common/text_modal.html index 36589199..c15282b9 100644 --- a/web/html/common/text_modal.html +++ b/web/html/common/text_modal.html @@ -28,10 +28,12 @@ this.visible = true; }, copy: function (content = '') { - copyToClipboard(content).then(() => { - app.$message.success('{{ i18n "copied" }}') - this.close(); - }) + ClipboardManager + .copyText(content) + .then(() => { + app.$message.success('{{ i18n "copied" }}') + this.close(); + }) }, close: function () { this.visible = false; |
