summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-10-28 18:58:52 +0200
committerVincent Petry <vincent@nextcloud.com>2022-10-28 18:58:52 +0200
commit3bf11dcf60cbc9b3cb2d6d67c41141bfa8921824 (patch)
treefbb46c1ab3ccbcdfc23fbcf3d9e8da4dcd29a355 /apps
parent12815c12b721e16574f3f7dc31b5b7779118541b (diff)
downloadnextcloud-server-3bf11dcf60cbc9b3cb2d6d67c41141bfa8921824.tar.gz
nextcloud-server-3bf11dcf60cbc9b3cb2d6d67c41141bfa8921824.zip
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>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue9
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)
},
},