From 7b3d0e126d96e12b304dcaeeb3efc4190682c9a0 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Wed, 19 Jul 2023 02:11:27 +0100 Subject: [PATCH] Improve sharing flow This commit introduces the following changes: - Does not create new share once user is selected for internal shares - Adds a `SharingDetails` view for share configurations - Adds a quick share select to enable fast changes in share permisions. Resolves: https://github.com/nextcloud/server/issues/26691 Signed-off-by: fenn-cs --- .../src/components/SharingEntry.vue | 407 +------ .../src/components/SharingEntryLink.vue | 202 +--- .../SharingEntryQuickShareSelect.vue | 184 +++ .../src/components/SharingEntrySimple.vue | 4 +- .../src/components/SharingInput.vue | 10 +- .../src/lib/SharePermissionsToolBox.js | 1 + apps/files_sharing/src/mixins/ShareDetails.js | 35 + .../files_sharing/src/mixins/ShareRequests.js | 23 +- apps/files_sharing/src/mixins/SharesMixin.js | 28 +- apps/files_sharing/src/utils/SharedWithMe.js | 10 +- .../src/views/SharingDetailsTab.vue | 1070 +++++++++++++++++ .../src/views/SharingLinkList.vue | 6 +- apps/files_sharing/src/views/SharingList.vue | 22 +- apps/files_sharing/src/views/SharingTab.vue | 47 +- 14 files changed, 1472 insertions(+), 577 deletions(-) create mode 100644 apps/files_sharing/src/components/SharingEntryQuickShareSelect.vue create mode 100644 apps/files_sharing/src/mixins/ShareDetails.js create mode 100644 apps/files_sharing/src/views/SharingDetailsTab.vue diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index 46b65c695eede..7399617a79c28 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -29,147 +29,64 @@ :menu-position="'left'" :url="share.shareWithAvatar" /> - -