浏览代码

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

enh: Send empty expireDate when not expireDate set
F. E Noel Nfebe 1 月之前
父节点
当前提交
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) {

文件差异内容过多而无法显示
+ 0 - 0
dist/5963-5963.js.map


文件差异内容过多而无法显示
+ 0 - 1
dist/7687-7687.js


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


文件差异内容过多而无法显示
+ 0 - 0
dist/7687-7687.js.map


文件差异内容过多而无法显示
+ 0 - 0
dist/files_sharing-files_sharing_tab.js


文件差异内容过多而无法显示
+ 0 - 0
dist/files_sharing-files_sharing_tab.js.map


部分文件因为文件数量过多而无法显示