Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoPress: use "Processing" thumbnail placeholder while a new thumbnail is being saved #39631

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

VideoPress: fix thumbnail update bug that showed the old thumbnail for a couple seconds on the details page.
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ const EditVideoDetails = () => {
selectPosterImageFromLibrary,
posterImageSource,
libraryAttachment,
isUpdatingPoster,
} = useEditDetails();

const { canPerformAction } = usePermission();
Expand Down Expand Up @@ -312,7 +313,7 @@ const EditVideoDetails = () => {
<VideoThumbnail
thumbnail={ thumbnail }
loading={ isFetchingData }
processing={ processing }
processing={ processing || isUpdatingPoster }
deleting={ isDeleting }
updating={ updating }
duration={ duration }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default () => {
processing,
isDeleting,
updateVideoPrivacy,
isUpdatingPoster,
} = useVideo( Number( videoId ), true );

const { playbackToken, isFetchingPlaybackToken } = usePlaybackToken( video );
Expand Down Expand Up @@ -331,5 +332,6 @@ export default () => {
selectedTime,
...metaEditData,
...posterEditData,
isUpdatingPoster,
};
};
Loading