From 596247261699ac922feef2d595dc4448900a12c7 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Mon, 24 Jun 2024 14:50:27 +0100 Subject: [PATCH] refactor(SharingInput): Remove unused addShare The new sharing flow since NC27 requires that users open the sharing details tab and customize their share before creating it. In https://github.com/nextcloud/server/pull/39472 the work of `addShare` was handed down to `openSharingDetails` that opens the sharing details tab for the user to customize and manually creat their share. Signed-off-by: fenn-cs --- apps/files_sharing/src/views/SharingDetailsTab.vue | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue index 22e63ba8e447d..bac4ddda7d3b0 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -227,8 +227,6 @@ import ShareRequests from '../mixins/ShareRequests.js' import ShareTypes from '../mixins/ShareTypes.js' import SharesMixin from '../mixins/SharesMixin.js' -import { subscribe } from '@nextcloud/event-bus' - import { ATOMIC_PERMISSIONS, BUNDLED_PERMISSIONS, @@ -651,7 +649,6 @@ export default { mounted() { this.$refs.quickPermissions?.querySelector('input:checked')?.focus() - subscribe('files_sharing:external:add-share', this.handleExistingShareFromExternalSource) }, methods: { @@ -909,9 +906,6 @@ export default { return null // Or a default icon component if needed } }, - handleExistingShareFromExternalSource(share) { - logger.info('Existing share from external source/app', { share }) - }, }, }