aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/SharingEntryInternal.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryInternal.vue')
-rw-r--r--apps/files_sharing/src/components/SharingEntryInternal.vue20
1 files changed, 7 insertions, 13 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryInternal.vue b/apps/files_sharing/src/components/SharingEntryInternal.vue
index 7ad5b35c49f..7fe5d5f2e23 100644
--- a/apps/files_sharing/src/components/SharingEntryInternal.vue
+++ b/apps/files_sharing/src/components/SharingEntryInternal.vue
@@ -9,14 +9,13 @@
<div class="avatar-external icon-external-white" />
</template>
- <NcActionButton :aria-label="t('files_sharing', 'Copy internal link to clipboard')"
+ <NcActionLink :href="internalLink"
+ :aria-label="t('files_sharing', 'Copy internal link to clipboard')"
+ target="_blank"
+ :icon="copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'"
@click.prevent="copyLink">
- <template #icon>
- <Check v-if="copied && copySuccess" :size="20" />
- <ClipboardTextMultipleOutline v-else :size="20" />
- </template>
{{ clipboardTooltip }}
- </NcActionButton>
+ </NcActionLink>
</SharingEntrySimple>
</ul>
</template>
@@ -24,19 +23,14 @@
<script>
import { generateUrl } from '@nextcloud/router'
import { showSuccess } from '@nextcloud/dialogs'
-import { NcActionButton } from '@nextcloud/vue'
+import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink'
import SharingEntrySimple from './SharingEntrySimple'
-import Check from 'vue-material-design-icons/Check.vue'
-import ClipboardTextMultipleOutline from 'vue-material-design-icons/ClipboardTextMultipleOutline.vue'
-
export default {
name: 'SharingEntryInternal',
components: {
- Check,
- ClipboardTextMultipleOutline,
- NcActionButton,
+ NcActionLink,
SharingEntrySimple,
},