From 56771b50c45172ddb2bf4e125a7981528fdb4a77 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/{6898-6898.js => 188-188.js} | 6 ++--- ....js.LICENSE.txt => 188-188.js.LICENSE.txt} | 0 dist/188-188.js.map | 1 + dist/6898-6898.js.map | 1 - dist/files_sharing-files_sharing_tab.js | 4 ++-- dist/files_sharing-files_sharing_tab.js.map | 2 +- 9 files changed, 25 insertions(+), 35 deletions(-) rename dist/{6898-6898.js => 188-188.js} (56%) rename dist/{6898-6898.js.LICENSE.txt => 188-188.js.LICENSE.txt} (100%) create mode 100644 dist/188-188.js.map delete mode 100644 dist/6898-6898.js.map 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 @@