From 926bc0b1e6f5186a26a94a6469303dcc6a46b1e9 Mon Sep 17 00:00:00 2001 From: Florian Schade Date: Mon, 20 Dec 2021 20:39:30 +0100 Subject: [PATCH] differentiate collaborator test-id for user and group support enforced and max expiration share dates --- .../enhancement-respect-share-expiration-date | 7 + .../SideBar/Shares/Collaborators/ListItem.vue | 2 +- .../ExpirationDatepicker.vue | 201 +++++++++--------- .../InviteCollaboratorForm.vue | 5 +- .../web-app-files/src/composables/index.ts | 6 - .../specs/peopleExpirationDate.spec.js | 2 +- .../SideBar/Shares/FileShares.spec.js | 2 +- .../ExpirationDatepicker.spec.js | 11 - .../ExpirationDatepicker.spec.ts | 166 +++++++++++++++ packages/web-runtime/package.json | 3 + tests/smoke/support/page/files/allFiles.ts | 4 +- web.d.ts | 7 + yarn.lock | 8 + 13 files changed, 303 insertions(+), 121 deletions(-) create mode 100644 changelog/unreleased/enhancement-respect-share-expiration-date delete mode 100644 packages/web-app-files/tests/unit/components/SideBar/Shares/InviteCollaborator/ExpirationDatepicker.spec.js create mode 100644 packages/web-app-files/tests/unit/components/SideBar/Shares/InviteCollaborator/ExpirationDatepicker.spec.ts diff --git a/changelog/unreleased/enhancement-respect-share-expiration-date b/changelog/unreleased/enhancement-respect-share-expiration-date new file mode 100644 index 00000000000..cb8dd427d01 --- /dev/null +++ b/changelog/unreleased/enhancement-respect-share-expiration-date @@ -0,0 +1,7 @@ +Enhancement: Respect share max, min and enforced expiration date + +if the expiration date max and/or enforcement is supported (defined by the capabilities) the UI now handles the different cases and respects the backend settings. +In oc10 there are options to enforce the maximum available date for group and user shares, this is now considered in the UI and updates dynamically in both cases. + +https://github.com/owncloud/web/pull/6176 +https://github.com/owncloud/web/pull/6039 diff --git a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/ListItem.vue b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/ListItem.vue index 1520aae83fe..e13546be242 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/ListItem.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/ListItem.vue @@ -1,6 +1,6 @@ -