Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-03-07 10:27:33 +0300
committerShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-03-07 10:27:33 +0300
commit26bf693dbdc2db0222ee37615e353f7ca1fdd3c1 (patch)
treee5ad1ba0a99242049934892062db0d1762f0de1a /web/html/common/text_modal.html
parent7483fb2ec57055f5f4f0fb14e559a87a5c2106f9 (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.html10
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;