Merge pull request #34925 from nextcloud/backport/34871/stable25

[stable25] Fix visibility of internal expire date
This commit is contained in:
Vincent Petry 2022-11-04 17:15:35 +01:00 committed by GitHub
commit 3289739110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View file

@ -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)
},
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long