diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index 54a95c418ac..8dfe85b4f05 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -59,38 +59,32 @@
-
-
-
-
- {{ t('files_sharing', 'Password protection (enforced)') }}
-
-
- {{ t('files_sharing', 'Password protection') }}
+ {{ config.enforcePasswordForPublicLink ? t('files_sharing', 'Password protection (enforced)') : t('files_sharing', 'Password protection') }}
- {{ t('files_sharing', 'Enter a password') }}
+
+
+
-
- {{ t('files_sharing', 'Expiration date (enforced)') }}
-
-
- {{ t('files_sharing', 'Enter a date') }}
+ @input="onExpirationChange /* let's not submit when picked, the user might want to still edit or copy the password */">
+
+
+
@@ -230,6 +224,7 @@ import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
import NcDialog from '@nextcloud/vue/dist/Components/NcDialog.js'
import Tune from 'vue-material-design-icons/Tune.vue'
+import IconCalendarBlank from 'vue-material-design-icons/CalendarBlank.vue'
import IconQr from 'vue-material-design-icons/Qrcode.vue'
import ErrorIcon from 'vue-material-design-icons/Exclamation.vue'
import LockIcon from 'vue-material-design-icons/Lock.vue'
@@ -263,6 +258,7 @@ export default {
NcDialog,
VueQrcode,
Tune,
+ IconCalendarBlank,
IconQr,
ErrorIcon,
LockIcon,