diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-11-02 12:58:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 12:58:24 +0100 |
commit | c5b21c59bc1efbeb20dd327ca2649576abf144ac (patch) | |
tree | 933ded982a0d7f94aa8e47402e91c6f6654fb92a /apps | |
parent | 865529716e8ef45e3396e67576f2ea5985220d06 (diff) | |
parent | 3bf11dcf60cbc9b3cb2d6d67c41141bfa8921824 (diff) | |
download | nextcloud-server-c5b21c59bc1efbeb20dd327ca2649576abf144ac.tar.gz nextcloud-server-c5b21c59bc1efbeb20dd327ca2649576abf144ac.zip |
Merge pull request #34871 from nextcloud/bugfix/34695/fix-internal-expiredate-visibility
Fix visibility of internal expire date
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntry.vue | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index 9627f2d77c5..7cc283e705c 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -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) }, }, |