From fa5f5cb9955e5c261307f79408f73a00e47f94d0 Mon Sep 17 00:00:00 2001 From: Jan Ackermann Date: Mon, 26 Feb 2024 12:57:37 +0100 Subject: [PATCH 1/9] Disable share role and share drop buttons when resource is locked --- ...e-shares-not-managable-due-to-file-locking | 7 +++ .../Shares/Collaborators/EditDropdown.vue | 28 +++++++++-- .../SideBar/Shares/Collaborators/ListItem.vue | 8 +++ .../Shares/Collaborators/RoleDropdown.vue | 50 +++++++++++++------ .../components/SideBar/Shares/FileShares.vue | 1 + .../web-app-files/src/views/FilesDrop.vue | 2 +- .../ResourceDetails.spec.ts.snap | 3 +- .../__snapshots__/ListItem.spec.ts.snap | 4 +- .../__snapshots__/RoleDropdown.spec.ts.snap | 48 ++++++++++-------- .../__snapshots__/FileShares.spec.ts.snap | 14 +++--- .../__snapshots__/SpaceMembers.spec.ts.snap | 6 +-- .../src/components/SideBar/Files/FileInfo.vue | 3 +- 12 files changed, 120 insertions(+), 54 deletions(-) create mode 100644 changelog/unreleased/bugfix-indicate-shares-not-managable-due-to-file-locking diff --git a/changelog/unreleased/bugfix-indicate-shares-not-managable-due-to-file-locking b/changelog/unreleased/bugfix-indicate-shares-not-managable-due-to-file-locking new file mode 100644 index 00000000000..4dfff547601 --- /dev/null +++ b/changelog/unreleased/bugfix-indicate-shares-not-managable-due-to-file-locking @@ -0,0 +1,7 @@ +Bugfix: Indicate shares that are not manageable due to file locking + +We indicate shares that are not manageable when a resource is locked, so the user doesn't run into errors, +while trying to delete or update a share. + +https://github.com/owncloud/web/pull/10514 +https://github.com/owncloud/web/issues/10507 diff --git a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue index 0999f8bd138..7303000fd96 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue @@ -1,8 +1,15 @@ @@ -86,6 +87,7 @@ export default defineComponent({ components: { InlineSvg }, + inheritAttrs: true, props: { /** * The name of the icon to display. @@ -155,6 +157,7 @@ export default defineComponent({ default: '' } }, + emits: ['loaded'], computed: { svgTitleId() { return uniqueId('oc-icon-title-') diff --git a/packages/design-system/src/components/OcResource/OcResource.vue b/packages/design-system/src/components/OcResource/OcResource.vue index d62ab0c4556..6a2072301c1 100644 --- a/packages/design-system/src/components/OcResource/OcResource.vue +++ b/packages/design-system/src/components/OcResource/OcResource.vue @@ -8,29 +8,24 @@ class="oc-resource-link" @click="emitClick" > - + + + + + + - - - - - + />
-