aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/SharingEntryInternal.vue
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-07-05 09:44:12 -0400
committernextcloud-command <nextcloud-command@users.noreply.github.com>2024-07-05 13:50:42 +0000
commit7a5e96756b3a7528023dd20ada171914fb3aef7a (patch)
treeed5d03cda7505dd8c3c227f4f1a3c1c3668d28a7 /apps/files_sharing/src/components/SharingEntryInternal.vue
parentda793b5c268fb6a252e73ad3c00cfad77eb35579 (diff)
downloadnextcloud-server-jtr/fix-40666-fallback-copy.tar.gz
nextcloud-server-jtr/fix-40666-fallback-copy.zip
fixup: squash before mergejtr/fix-40666-fallback-copy
Signed-off-by: Josh <josh.t.richards@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryInternal.vue')
-rw-r--r--apps/files_sharing/src/components/SharingEntryInternal.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryInternal.vue b/apps/files_sharing/src/components/SharingEntryInternal.vue
index a355b85f092..f78d0997ad9 100644
--- a/apps/files_sharing/src/components/SharingEntryInternal.vue
+++ b/apps/files_sharing/src/components/SharingEntryInternal.vue
@@ -96,7 +96,10 @@ export default {
if (window.isSecureContext) {
await navigator.clipboard.writeText(this.internalLink)
} else { // nothing to lose by trying the fallback
- document.execCommand('copy')
+ window.prompt(
+ t('Could not copy to clipboard, please copy manually:'),
+ this.internalLink
+ )
}
showSuccess(t('files_sharing', 'Link copied'))
this.$refs.shareEntrySimple.$refs.actionsComponent.$el.focus()