5959 </NcActionText >
6060
6161 <!-- password -->
62- <NcActionText v-if =" pendingEnforcedPassword " >
63- <template #icon >
64- <LockIcon :size =" 20 " />
65- </template >
66- {{ t('files_sharing', 'Password protection (enforced)') }}
67- </NcActionText >
68- <NcActionCheckbox v-else-if =" pendingPassword "
62+ <NcActionCheckbox v-if =" pendingPassword "
6963 :checked .sync =" isPasswordProtected "
7064 :disabled =" config .enforcePasswordForPublicLink || saving "
7165 class="share-link-password-checkbox"
7266 @uncheck =" onPasswordDisable " >
73- {{ t('files_sharing', 'Password protection') }}
67+ {{ config.enforcePasswordForPublicLink ? t('files_sharing', 'Password protection (enforced)') : t('files_sharing', 'Password protection') }}
7468 </NcActionCheckbox >
7569
7670 <NcActionInput v-if =" pendingEnforcedPassword || share .password "
7771 class="share-link-password"
72+ :label =" t (' files_sharing' , ' Enter a password' )"
7873 :value .sync =" share .password "
7974 :disabled =" saving "
8075 :required =" config .enableLinkPasswordByDefault || config .enforcePasswordForPublicLink "
8176 :minlength =" isPasswordPolicyEnabled && config .passwordPolicy .minLength "
82- icon=""
8377 autocomplete="new-password"
8478 @submit =" onNewLinkShare " >
85- {{ t('files_sharing', 'Enter a password') }}
79+ <template #icon >
80+ <LockIcon :size =" 20 " />
81+ </template >
8682 </NcActionInput >
8783
8884 <!-- expiration date -->
89- <NcActionText v-if =" pendingExpirationDate " icon="icon-calendar-dark">
90- {{ t('files_sharing', 'Expiration date (enforced)') }}
91- </NcActionText >
9285 <NcActionInput v-if =" pendingExpirationDate "
9386 class="share-link-expire-date"
87+ :label =" t (' files_sharing' , ' Expiration date (enforced)' )"
9488 :disabled =" saving "
9589 :is-native-picker =" true "
9690 :hide-label =" true "
9791 :value =" new Date (share .expireDate )"
9892 type="date"
9993 :min =" dateTomorrow "
10094 :max =" maxExpirationDateEnforced "
101- @input =" onExpirationChange " >
102- <!-- let's not submit when picked, the user
103- might want to still edit or copy the password -- >
104- {{ t('files_sharing', 'Enter a date') }}
95+ @input =" onExpirationChange /* let's not submit when picked, the user might want to still edit or copy the password */ " >
96+ <template # icon >
97+ < IconCalendarBlank : size = " 20 " / >
98+ </ template >
10599 </NcActionInput >
106100
107101 <NcActionButton @click .prevent .stop =" onNewLinkShare " >
@@ -220,6 +214,7 @@ import Vue from 'vue'
220214import VueQrcode from ' @chenfengyuan/vue-qrcode'
221215
222216import NcActionButton from ' @nextcloud/vue/dist/Components/NcActionButton.js'
217+ import NcActionCheckbox from ' @nextcloud/vue/dist/Components/NcActionCheckbox.js'
223218import NcActionInput from ' @nextcloud/vue/dist/Components/NcActionInput.js'
224219import NcActionLink from ' @nextcloud/vue/dist/Components/NcActionLink.js'
225220import NcActionText from ' @nextcloud/vue/dist/Components/NcActionText.js'
@@ -229,6 +224,7 @@ import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
229224import NcDialog from ' @nextcloud/vue/dist/Components/NcDialog.js'
230225
231226import Tune from ' vue-material-design-icons/Tune.vue'
227+ import IconCalendarBlank from ' vue-material-design-icons/CalendarBlank.vue'
232228import IconQr from ' vue-material-design-icons/Qrcode.vue'
233229import ErrorIcon from ' vue-material-design-icons/Exclamation.vue'
234230import LockIcon from ' vue-material-design-icons/Lock.vue'
@@ -253,6 +249,7 @@ export default {
253249 ExternalShareAction,
254250 NcActions,
255251 NcActionButton,
252+ NcActionCheckbox,
256253 NcActionInput,
257254 NcActionLink,
258255 NcActionText,
@@ -261,6 +258,7 @@ export default {
261258 NcDialog,
262259 VueQrcode,
263260 Tune,
261+ IconCalendarBlank,
264262 IconQr,
265263 ErrorIcon,
266264 LockIcon,
0 commit comments