From 24b5f0bf28139b6c20af224734e27ee5c8445169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 9 Dec 2022 19:54:25 +0100 Subject: [PATCH] ComposeEventModal: Set is_uploading to false after successsfully uploading banner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/reducers/compose-event.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/soapbox/reducers/compose-event.ts b/app/soapbox/reducers/compose-event.ts index f6ad00b21..c6c4d17fa 100644 --- a/app/soapbox/reducers/compose-event.ts +++ b/app/soapbox/reducers/compose-event.ts @@ -71,7 +71,9 @@ export default function compose_event(state = ReducerRecord(), action: AnyAction case EVENT_BANNER_UPLOAD_REQUEST: return state.set('is_uploading', true); case EVENT_BANNER_UPLOAD_SUCCESS: - return state.set('banner', normalizeAttachment(fromJS(action.media))); + return state + .set('banner', normalizeAttachment(fromJS(action.media))) + .set('is_uploading', false); case EVENT_BANNER_UPLOAD_FAIL: return state.set('is_uploading', false); case EVENT_BANNER_UPLOAD_UNDO: