File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
apps/files_sharing/src/components Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 7777 </ActionCheckbox >
7878
7979 <!-- expiration date -->
80- <ActionCheckbox :checked.sync =" hasExpirationDate"
80+ <ActionCheckbox
81+ v-if =" canHaveExpirationDate"
82+ :checked.sync =" hasExpirationDate"
8183 :disabled =" config.isDefaultInternalExpireDateEnforced || saving"
8284 @uncheck =" onExpirationDisable" >
8385 {{ config.isDefaultInternalExpireDateEnforced
8486 ? t('files_sharing', 'Expiration date enforced')
8587 : t('files_sharing', 'Set expiration date') }}
8688 </ActionCheckbox >
87- <ActionInput v-if =" hasExpirationDate"
89+ <ActionInput v-if =" canHaveExpirationDate && hasExpirationDate"
8890 ref =" expireDate"
8991 v-tooltip.auto =" {
9092 content: errors.expireDate,
@@ -215,8 +217,16 @@ export default {
215217 },
216218
217219 canHaveNote () {
218- return this .share .type !== this .SHARE_TYPES .SHARE_TYPE_REMOTE
219- && this .share .type !== this .SHARE_TYPES .SHARE_TYPE_REMOTE_GROUP
220+ return ! this .isRemoteShare
221+ },
222+
223+ canHaveExpirationDate () {
224+ return ! this .isRemoteShare
225+ },
226+
227+ isRemoteShare () {
228+ return this .share .type === this .SHARE_TYPES .SHARE_TYPE_REMOTE
229+ || this .share .type === this .SHARE_TYPES .SHARE_TYPE_REMOTE_GROUP
220230 },
221231
222232 /**
You can’t perform that action at this time.
0 commit comments