From 34ea7128740aca9b998fd284788fb233bf402785 Mon Sep 17 00:00:00 2001 From: Franco Montenegro Date: Tue, 26 Apr 2022 08:52:48 -0300 Subject: [PATCH] Do not reset description field while uploading thumbnail in playlist edit/publish form; use same upload thumbnail layout as file upload for playlist edit/publish. --- ui/component/collectionEdit/view.jsx | 1 + ui/component/selectThumbnail/view.jsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/component/collectionEdit/view.jsx b/ui/component/collectionEdit/view.jsx index b2a08976e..97f2bf7b1 100644 --- a/ui/component/collectionEdit/view.jsx +++ b/ui/component/collectionEdit/view.jsx @@ -362,6 +362,7 @@ function CollectionForm(props: Props) { thumbnailParamError={thumbError} thumbnailParamStatus={thumbStatus} updateThumbnailParams={handleUpdateThumbnail} + usePublishFormMode /> void, updateThumbnailParams: ({}) => void, resetThumbnailStatus: () => void, + usePublishFormMode: boolean, }; function SelectThumbnail(props: Props) { @@ -42,9 +43,10 @@ function SelectThumbnail(props: Props) { updateThumbnailParams, thumbnailPath, resetThumbnailStatus, + usePublishFormMode, } = props; - const publishForm = !updateThumbnailParams; + const publishForm = usePublishFormMode || !updateThumbnailParams; const thumbnail = publishForm ? props.thumbnail : thumbnailParam; const thumbnailError = publishForm ? props.thumbnailError : props.thumbnailParamError;