aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2023-11-17 16:45:22 +0100
committerGrigorii K. Shartsev <me@shgk.me>2023-11-17 16:55:05 +0100
commitff2ef8d0d64d62cd2d727059fadd88e513fe576a (patch)
tree162b7343866aa7abe44d2a8d1216e82ccd0b9a76 /apps/files_sharing/src
parent8c24a32fda99715fdcb4020eb6f0231d13eb6e79 (diff)
downloadnextcloud-server-ff2ef8d0d64d62cd2d727059fadd88e513fe576a.tar.gz
nextcloud-server-ff2ef8d0d64d62cd2d727059fadd88e513fe576a.zip
Replace ActionLink with ActionButton on sharing tab
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> So-authored-by: Grigorii K. Shartsev <me@shgk.me>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/components/SharingEntryInternal.vue11
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue6
2 files changed, 6 insertions, 11 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
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index 3247b989f67..77caaee0154 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -43,12 +43,10 @@
<!-- clipboard -->
<NcActions v-if="share && !isEmailShareType && share.token" ref="copyButton" class="sharing-entry__copy">
- <NcActionLink :href="shareLink"
- target="_blank"
- :title="copyLinkTooltip"
+ <NcActionButton :title="copyLinkTooltip"
:aria-label="copyLinkTooltip"
:icon="copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'"
- @click.stop.prevent="copyLink" />
+ @click.prevent="copyLink" />
</NcActions>
</div>