create listener for imageMetdataReceived to swap our progressImage

This commit is contained in:
Mary Hipp
2023-05-25 16:11:05 -04:00
committed by psychedelicious
parent 0c3b4bb70d
commit 82a8972bde
3 changed files with 32 additions and 1 deletions

View File

@ -215,6 +215,9 @@ export const systemSlice = createSlice({
languageChanged: (state, action: PayloadAction<keyof typeof LANGUAGES>) => {
state.language = action.payload;
},
progressImageSet(state, action: PayloadAction<ProgressImage | null>) {
state.progressImage = action.payload;
},
},
extraReducers(builder) {
/**
@ -305,7 +308,6 @@ export const systemSlice = createSlice({
state.currentStep = 0;
state.totalSteps = 0;
state.statusTranslationKey = 'common.statusProcessingComplete';
state.progressImage = null;
if (state.canceledSession === data.graph_execution_state_id) {
state.isProcessing = false;
@ -438,6 +440,7 @@ export const {
isPersistedChanged,
shouldAntialiasProgressImageChanged,
languageChanged,
progressImageSet,
} = systemSlice.actions;
export default systemSlice.reducer;