Merge pull request #26028 from nextcloud/backport/25933/stable19
[stable19] Hide expiration date field for remote shares
This commit is contained in:
commit
0a7a401f95
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -77,14 +77,16 @@
|
|||
</ActionCheckbox>
|
||||
|
||||
<!-- expiration date -->
|
||||
<ActionCheckbox :checked.sync="hasExpirationDate"
|
||||
<ActionCheckbox
|
||||
v-if="canHaveExpirationDate"
|
||||
:checked.sync="hasExpirationDate"
|
||||
:disabled="config.isDefaultInternalExpireDateEnforced || saving"
|
||||
@uncheck="onExpirationDisable">
|
||||
{{ config.isDefaultInternalExpireDateEnforced
|
||||
? t('files_sharing', 'Expiration date enforced')
|
||||
: t('files_sharing', 'Set expiration date') }}
|
||||
</ActionCheckbox>
|
||||
<ActionInput v-if="hasExpirationDate"
|
||||
<ActionInput v-if="canHaveExpirationDate && hasExpirationDate"
|
||||
ref="expireDate"
|
||||
v-tooltip.auto="{
|
||||
content: errors.expireDate,
|
||||
|
@ -215,8 +217,16 @@ export default {
|
|||
},
|
||||
|
||||
canHaveNote() {
|
||||
return this.share.type !== this.SHARE_TYPES.SHARE_TYPE_REMOTE
|
||||
&& this.share.type !== this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP
|
||||
return !this.isRemoteShare
|
||||
},
|
||||
|
||||
canHaveExpirationDate() {
|
||||
return !this.isRemoteShare
|
||||
},
|
||||
|
||||
isRemoteShare() {
|
||||
return this.share.type === this.SHARE_TYPES.SHARE_TYPE_REMOTE
|
||||
|| this.share.type === this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue