mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Merge pull request #34925 from nextcloud/backport/34871/stable25
[stable25] Fix visibility of internal expire date
This commit is contained in:
commit
3289739110
3 changed files with 9 additions and 6 deletions
|
|
@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
|||
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue