aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorF. E Noel Nfebe <fenn25.fn@gmail.com>2024-03-26 16:08:05 +0100
committerGitHub <noreply@github.com>2024-03-26 16:08:05 +0100
commitc376dbf97baf392720922b6e65e35a16ac2f56cb (patch)
tree985fef4e33721df49c967e64453203d45ff41ebd /apps/files_sharing/src
parent4177e8a61751783eb78225deeea22ef5b1891df3 (diff)
parent53582af68265e81ab46f46aab59aabc695f43afb (diff)
downloadnextcloud-server-c376dbf97baf392720922b6e65e35a16ac2f56cb.tar.gz
nextcloud-server-c376dbf97baf392720922b6e65e35a16ac2f56cb.zip
Merge pull request #44291 from nextcloud/44219-send-share-expiry-val
enh: Send empty expireDate when not expireDate set
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/views/SharingDetailsTab.vue6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue
index 3667870de5a..fbe43a06c11 100644
--- a/apps/files_sharing/src/views/SharingDetailsTab.vue
+++ b/apps/files_sharing/src/views/SharingDetailsTab.vue
@@ -868,9 +868,7 @@ export default {
fileInfo: this.fileInfo,
}
- if (this.hasExpirationDate) {
- incomingShare.expireDate = this.share.expireDate
- }
+ incomingShare.expireDate = this.hasExpirationDate ? this.share.expireDate : ''
if (this.isPasswordProtected) {
incomingShare.password = this.share.password
@@ -912,9 +910,9 @@ export default {
shareWith: share.shareWith,
permissions: share.permissions,
attributes: JSON.stringify(fileInfo.shareAttributes),
+ expireDate: share.expireDate,
...(share.note ? { note: share.note } : {}),
...(share.password ? { password: share.password } : {}),
- ...(share.expireDate ? { expireDate: share.expireDate } : {}),
})
return resultingShare
} catch (error) {