mirror of https://github.com/nextcloud/server
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:
parent
12815c12b7
commit
3bf11dcf60
|
@ -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.
Loading…
Reference in New Issue