mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
Merge pull request #47807 from nextcloud/fix/files_sharing--password-label
fix(files_sharing): password checkbox and labels in link share
This commit is contained in:
commit
4e68e88f2c
9 changed files with 22 additions and 24 deletions
|
|
@ -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,
|
||||
|
|
|
|||
4
dist/6955-6955.js → dist/6794-6794.js
vendored
4
dist/6955-6955.js → dist/6794-6794.js
vendored
File diff suppressed because one or more lines are too long
1
dist/6794-6794.js.map
vendored
Normal file
1
dist/6794-6794.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/6794-6794.js.map.license
vendored
Symbolic link
1
dist/6794-6794.js.map.license
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
6794-6794.js.license
|
||||
1
dist/6955-6955.js.map
vendored
1
dist/6955-6955.js.map
vendored
File diff suppressed because one or more lines are too long
1
dist/6955-6955.js.map.license
vendored
1
dist/6955-6955.js.map.license
vendored
|
|
@ -1 +0,0 @@
|
|||
6955-6955.js.license
|
||||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue