diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-11-26 01:07:39 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-12-06 01:04:10 +0000 |
commit | 08e15308cbb2e0dd3beefe4707de603d0af047fc (patch) | |
tree | 5eaaf7449ab9249245fb3590e4091ae02355906a /apps/files_sharing/src/components/SharingEntryLink.vue | |
parent | be0facaba478235ee5f0608e36bf806570298a18 (diff) | |
download | nextcloud-server-08e15308cbb2e0dd3beefe4707de603d0af047fc.tar.gz nextcloud-server-08e15308cbb2e0dd3beefe4707de603d0af047fc.zip |
Add success popup message for copying share links
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryLink.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryLink.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index 930bae849c2..9b60e34b194 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -572,9 +572,10 @@ export default { */ clipboardTooltip() { if (this.copied) { - return this.copySuccess - ? t('files_sharing', 'Link copied') - : t('files_sharing', 'Cannot copy, please copy the link manually') + if (this.copySuccess) { + return '' + } + return t('files_sharing', 'Cannot copy, please copy the link manually') } return t('files_sharing', 'Copy to clipboard') }, @@ -781,6 +782,7 @@ export default { async copyLink() { try { await this.$copyText(this.shareLink) + showSuccess(t('files_sharing', 'Link copied')) // focus and show the tooltip this.$refs.copyButton.$el.focus() this.copySuccess = true |