From cf2b9e83531ea8e69076dc932543e8fdbdf95a29 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Tue, 19 Sep 2023 11:57:43 +0100 Subject: [PATCH] Consider share type for enforced share expiry dates We have three kind of share expiry date enforcements. - `isDefaultExpireDateEnforced` - `isDefaultInternalExpireDateEnforced` - `isDefaultRemoteExpireDateEnforced` Before these commit, `isExpiryDateEnforced` that is used to disable/enable the set expiry date checkbox does not take those into consideration which is problematic as those have different applications. In addition, this commit now uses `isExpiryDateEnforced` to disable/enable the input for expiry date that shows up before the creation of link shares. Here, `hasExpirationDate` is also removed from 'SharingEntryLink` component as it is not used. Signed-off-by: fenn-cs Signed-off-by: nextcloud-command --- .../src/components/SharingEntryLink.vue | 24 +------------------ apps/files_sharing/src/mixins/SharesMixin.js | 9 +++++++ .../src/views/SharingDetailsTab.vue | 13 ++++++---- dist/files_sharing-files_sharing_tab.js | 4 ++-- dist/files_sharing-files_sharing_tab.js.map | 2 +- 5 files changed, 21 insertions(+), 31 deletions(-) diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index bb5c8ab52b468..896ca1bbc95ec 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -97,7 +97,7 @@