diff options
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryInternal.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryInternal.vue | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryInternal.vue b/apps/files_sharing/src/components/SharingEntryInternal.vue index 8d2194c62b0..f6b900b8bf7 100644 --- a/apps/files_sharing/src/components/SharingEntryInternal.vue +++ b/apps/files_sharing/src/components/SharingEntryInternal.vue @@ -8,12 +8,10 @@ <div class="avatar-external icon-external-white" /> </template> - <NcActionLink :href="internalLink" + <NcActionButton :title="copyLinkTooltip" :aria-label="copyLinkTooltip" - :title="copyLinkTooltip" - target="_blank" :icon="copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'" - @click.prevent="copyLink" /> + @click="copyLink" /> </SharingEntrySimple> </ul> </template> @@ -21,14 +19,14 @@ <script> import { generateUrl } from '@nextcloud/router' import { showSuccess } from '@nextcloud/dialogs' -import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' import SharingEntrySimple from './SharingEntrySimple.vue' export default { name: 'SharingEntryInternal', components: { - NcActionLink, + NcActionButton, SharingEntrySimple, }, @@ -85,7 +83,6 @@ export default { try { await navigator.clipboard.writeText(this.internalLink) showSuccess(t('files_sharing', 'Link copied')) - // focus and show the tooltip (note: cannot set ref on NcActionLink) this.$refs.shareEntrySimple.$refs.actionsComponent.$el.focus() this.copySuccess = true this.copied = true |