From 4dba92d72a539f56d81d7653305ca338763d391b Mon Sep 17 00:00:00 2001 From: Thomas Lehmann Date: Thu, 7 Nov 2024 19:47:13 +0100 Subject: [PATCH] refactor(files_sharing): dissolve component SharingEntryLink into SharingTab According to #48925 screen designs we've to split this into 1. Link (creation) and 2. List (of created share links) Intermediate step. Refs: #48925 --- apps/files_sharing/src/views/SharingTab.vue | 53 ++++++++++++++++++--- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue index 3f9b32a041609..113a4d4ba1cba 100644 --- a/apps/files_sharing/src/views/SharingTab.vue +++ b/apps/files_sharing/src/views/SharingTab.vue @@ -59,13 +59,12 @@

External shares

- - + + @add:share="addShare" /> + @@ -77,7 +76,22 @@ :shares="shares" @open-sharing-details="toggleShareDetailsView" /> - + + + + share.type === this.SHARE_TYPES.SHARE_TYPE_LINK).length > 0 + }, + + /** + * Do we have any link or email shares? + * + * @return {boolean} + */ + hasShares() { + return this.shares.length > 0 + }, }, methods: {