diff --git a/apps/files_sharing/js/dist/files_sharing_tab.js b/apps/files_sharing/js/dist/files_sharing_tab.js index 61d743e5c4a35dfeeff37c6c830dafb275574e68..51bb5a60f5dfdeca70584b1cb229d7d6a4d31dea 100644 Binary files a/apps/files_sharing/js/dist/files_sharing_tab.js and b/apps/files_sharing/js/dist/files_sharing_tab.js differ diff --git a/apps/files_sharing/js/dist/files_sharing_tab.js.map b/apps/files_sharing/js/dist/files_sharing_tab.js.map index a6239a025a4362d05fab7433df76025aeda6352c..e2938205fc1737dc480ae9ba07e4fe4d5b19add1 100644 Binary files a/apps/files_sharing/js/dist/files_sharing_tab.js.map and b/apps/files_sharing/js/dist/files_sharing_tab.js.map differ diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index e2fcaa35a767b9bc2a40a0fddfef6dcc8af06f22..4baafcd96bcbc449aaf357686689678ecece0837 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -84,14 +84,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, @@ -222,8 +224,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 }, /**