diff options
author | Stephan Orbaugh <62374139+sorbaugh@users.noreply.github.com> | 2024-09-10 13:31:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 13:31:11 +0200 |
commit | 0d31f181d2ad01f9b31dce168df5dfb327f8c12a (patch) | |
tree | 3a6ca37e1d10de429f583f560ac872160e316069 /apps | |
parent | 819bd7372d900d51326718e4fb100ef4eb15074a (diff) | |
parent | a18ca8e3237ab5f6a26b4b94351ccaa97eeea799 (diff) | |
download | nextcloud-server-0d31f181d2ad01f9b31dce168df5dfb327f8c12a.tar.gz nextcloud-server-0d31f181d2ad01f9b31dce168df5dfb327f8c12a.zip |
Merge pull request #47851 from nextcloud/backport/47807/stable30
[stable30] fix(files_sharing): password checkbox and labels in link share
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryLink.vue | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index cf2e2e588d3..8fb6b61e18b 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -59,38 +59,32 @@ </NcActionText> <!-- password --> - <NcActionText v-if="pendingEnforcedPassword"> - <template #icon> - <LockIcon :size="20" /> - </template> - {{ t('files_sharing', 'Password protection (enforced)') }} - </NcActionText> - <NcActionCheckbox v-else-if="pendingPassword" + <NcActionCheckbox v-if="pendingPassword" :checked.sync="isPasswordProtected" :disabled="config.enforcePasswordForPublicLink || saving" class="share-link-password-checkbox" @uncheck="onPasswordDisable"> - {{ t('files_sharing', 'Password protection') }} + {{ config.enforcePasswordForPublicLink ? t('files_sharing', 'Password protection (enforced)') : t('files_sharing', 'Password protection') }} </NcActionCheckbox> <NcActionInput v-if="pendingEnforcedPassword || share.password" class="share-link-password" + :label="t('files_sharing', 'Enter a password')" :value.sync="share.password" :disabled="saving" :required="config.enableLinkPasswordByDefault || config.enforcePasswordForPublicLink" :minlength="isPasswordPolicyEnabled && config.passwordPolicy.minLength" - icon="" autocomplete="new-password" @submit="onNewLinkShare"> - {{ t('files_sharing', 'Enter a password') }} + <template #icon> + <LockIcon :size="20" /> + </template> </NcActionInput> <!-- expiration date --> - <NcActionText v-if="pendingExpirationDate" icon="icon-calendar-dark"> - {{ t('files_sharing', 'Expiration date (enforced)') }} - </NcActionText> <NcActionInput v-if="pendingExpirationDate" class="share-link-expire-date" + :label="t('files_sharing', 'Expiration date (enforced)')" :disabled="saving" :is-native-picker="true" :hide-label="true" @@ -98,10 +92,10 @@ type="date" :min="dateTomorrow" :max="maxExpirationDateEnforced" - @input="onExpirationChange"> - <!-- let's not submit when picked, the user - might want to still edit or copy the password --> - {{ 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 */"> + <template #icon> + <IconCalendarBlank :size="20" /> + </template> </NcActionInput> <NcActionButton @click.prevent.stop="onNewLinkShare"> @@ -220,6 +214,7 @@ import Vue from 'vue' import VueQrcode from '@chenfengyuan/vue-qrcode' import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox.js' import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput.js' import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js' import NcActionText from '@nextcloud/vue/dist/Components/NcActionText.js' @@ -229,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' @@ -253,6 +249,7 @@ export default { ExternalShareAction, NcActions, NcActionButton, + NcActionCheckbox, NcActionInput, NcActionLink, NcActionText, @@ -261,6 +258,7 @@ export default { NcDialog, VueQrcode, Tune, + IconCalendarBlank, IconQr, ErrorIcon, LockIcon, |