mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
fix(SharingEntryLink): Show default password before create if any
Prevent silent addition of expiration date to shares. Prevent silent addition for password to shares. Both now have a `shareRequiresReview` check Resolves : https://github.com/nextcloud/server/issues/48860 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
parent
b96661bd58
commit
e43aa76a00
1 changed files with 6 additions and 2 deletions
|
|
@ -96,9 +96,9 @@
|
|||
</NcActionCheckbox>
|
||||
|
||||
<!-- expiration date -->
|
||||
<NcActionInput v-if="pendingExpirationDate"
|
||||
<NcActionInput v-if="(hasDefaultExpirationDate || pendingEnforcedExpirationDate) && defaultExpirationDateEnabled"
|
||||
class="share-link-expire-date"
|
||||
:label="t('files_sharing', 'Expiration date (enforced)')"
|
||||
:label="pendingEnforcedExpirationDate ? t('files_sharing', 'Enter expiration date (enforced)') : t('files_sharing', 'Enter expiration date')"
|
||||
:disabled="saving"
|
||||
:is-native-picker="true"
|
||||
:hide-label="true"
|
||||
|
|
@ -538,6 +538,10 @@ export default {
|
|||
this.share.expireDate = this.defaultExpirationDateEnabled ? this.formatDateToString(this.config.defaultExpirationDate) : ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.defaultExpirationDateEnabled = this.config.defaultExpirationDate instanceof Date
|
||||
this.share.expireDate = this.defaultExpirationDateEnabled ? this.formatDateToString(this.config.defaultExpirationDate) : ''
|
||||
},
|
||||
|
||||
methods: {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue