diff options
| author | Sanaei <ho3ein.sanaei@gmail.com> | 2025-03-07 14:40:35 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-07 14:40:35 +0300 |
| commit | 42fa64770bab9f9fb52e0cdb6d5dd82d66f19c35 (patch) | |
| tree | 17d8a98faecccbda02b98ede48adf020d5e8d2f9 /web/html/common/text_modal.html | |
| parent | 2d8cca3a2ec1ae9034b7bc28a2fb5f2260f43e1a (diff) | |
| parent | 0a207b8a2c0629b7f1996025a40a10fbe58d05d0 (diff) | |
Merge pull request #2732 from shishkevichd/refactor/refactor-1
Code refactoring
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; |
