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>
This commit is contained in:
Vincent Petry 2022-10-28 18:58:52 +02:00
parent 12815c12b7
commit 3bf11dcf60
No known key found for this signature in database
GPG Key ID: E055D6A4D513575C
3 changed files with 6 additions and 3 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)
},
},

Binary file not shown.

Binary file not shown.