Browse Source
Fix visibility of internal expire date
Fixed visibility of the expiration date field for internal shares by
aligning the logic with the one from the public link shares.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
pull/34871/head
Vincent Petry
3 years ago
No known key found for this signature in database
GPG Key ID: E055D6A4D513575C
3 changed files with
9 additions and
6 deletions
apps/files_sharing/src/components/SharingEntry.vue
dist/files_sharing-files_sharing_tab.js
dist/files_sharing-files_sharing_tab.js.map
@ -374,11 +374,14 @@ export default {
return this . config . isDefaultInternalExpireDateEnforced || ! ! this . share . expireDate
} ,
set ( enabled ) {
let defaultExpirationDate = this . config . defaultInternalExpirationDate
if ( ! defaultExpirationDate ) {
defaultExpirationDate = new Date ( )
}
this . share . expireDate = enabled
? this . config . defaultInternalExpirationDate !== ''
? this . config . defaultInternalExpirationDate
: new Date ( )
? defaultExpirationDate
: ''
console . debug ( 'Expiration date status' , enabled , this . share . expireDate )
} ,
} ,