Browse Source

Merge pull request #44291 from nextcloud/44219-send-share-expiry-val

enh: Send empty expireDate when not expireDate set
F. E Noel Nfebe 1 month ago
parent
commit
c376dbf97b

+ 2 - 4
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) {

File diff suppressed because it is too large
+ 0 - 0
dist/5963-5963.js.map


File diff suppressed because it is too large
+ 0 - 1
dist/7687-7687.js


+ 0 - 0
dist/5963-5963.js.LICENSE.txt → dist/7687-7687.js.LICENSE.txt


File diff suppressed because it is too large
+ 0 - 0
dist/7687-7687.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/files_sharing-files_sharing_tab.js


File diff suppressed because it is too large
+ 0 - 0
dist/files_sharing-files_sharing_tab.js.map


Some files were not shown because too many files changed in this diff