From c0f06234fa3b898c67c532661f7708ad7ab0c967 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 1 Aug 2023 14:37:51 +0200 Subject: [PATCH 1/4] Fix set or remove expiration date on groups not possible --- .../Shares/Collaborators/EditDropdown.vue | 17 +++++++++-------- .../InviteCollaborator/ExpirationDatepicker.vue | 4 +--- 2 files changed, 10 insertions(+), 11 deletions(-) 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 f2fe4eab03c..08cad53e625 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 @@ -28,7 +28,11 @@ @click="togglePopover" > - + @@ -186,10 +190,7 @@ export default defineComponent({ }, isExpirationSupported() { - return ( - (this.editingUser && this.userExpirationDate) || - (this.editingGroup && this.groupExpirationDate) - ) + return this.editingUser || this.editingGroup }, isExpirationDateSet() { @@ -248,14 +249,14 @@ export default defineComponent({ isExpirationDateEnforced() { if (this.editingUser) { - return this.userExpirationDate.enforced + return this.userExpirationDate?.enforced } if (this.editingGroup) { - return this.groupExpirationDate.enforced + return this.groupExpirationDate?.enforced } - return this.userExpirationDate.enforced || this.groupExpirationDate.enforced + return this.userExpirationDate?.enforced || this.groupExpirationDate?.enforced }, maxExpirationDate() { diff --git a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.vue b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.vue index e1f94bda6dd..38c67771d14 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/InviteCollaborator/ExpirationDatepicker.vue @@ -1,5 +1,5 @@