From 9a3727d3adafb51207ee1e73a4547bf7b6cbf219 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 16 May 2023 09:48:58 +1000 Subject: [PATCH] chore(ui): clean up systemSlice --- .../src/features/system/store/systemSlice.ts | 74 ------------------- 1 file changed, 74 deletions(-) diff --git a/invokeai/frontend/web/src/features/system/store/systemSlice.ts b/invokeai/frontend/web/src/features/system/store/systemSlice.ts index 6784447af8..7331fcdba9 100644 --- a/invokeai/frontend/web/src/features/system/store/systemSlice.ts +++ b/invokeai/frontend/web/src/features/system/store/systemSlice.ts @@ -143,73 +143,15 @@ export const systemSlice = createSlice({ setCurrentStatus: (state, action: PayloadAction) => { state.statusTranslationKey = action.payload; }, - errorOccurred: (state) => { - state.isProcessing = false; - state.isCancelable = true; - state.currentStep = 0; - state.totalSteps = 0; - state.currentIteration = 0; - state.totalIterations = 0; - state.currentStatusHasSteps = false; - state.statusTranslationKey = 'common.statusError'; - }, - setIsConnected: (state, action: PayloadAction) => { - state.isConnected = action.payload; - state.isProcessing = false; - state.isCancelable = true; - state.currentStep = 0; - state.totalSteps = 0; - state.currentIteration = 0; - state.totalIterations = 0; - state.currentStatusHasSteps = false; - }, setShouldConfirmOnDelete: (state, action: PayloadAction) => { state.shouldConfirmOnDelete = action.payload; }, setShouldDisplayGuides: (state, action: PayloadAction) => { state.shouldDisplayGuides = action.payload; }, - processingCanceled: (state) => { - state.isProcessing = false; - state.isCancelable = true; - state.currentStep = 0; - state.totalSteps = 0; - state.currentIteration = 0; - state.totalIterations = 0; - state.currentStatusHasSteps = false; - state.statusTranslationKey = 'common.statusProcessingCanceled'; - }, - generationRequested: (state) => { - state.isProcessing = true; - state.isCancelable = true; - state.currentStep = 0; - state.totalSteps = 0; - state.currentIteration = 0; - state.totalIterations = 0; - state.currentStatusHasSteps = false; - state.statusTranslationKey = 'common.statusPreparing'; - }, setIsCancelable: (state, action: PayloadAction) => { state.isCancelable = action.payload; }, - modelChangeRequested: (state) => { - state.statusTranslationKey = 'common.statusLoadingModel'; - state.isCancelable = false; - state.isProcessing = true; - state.currentStatusHasSteps = false; - }, - modelConvertRequested: (state) => { - state.statusTranslationKey = 'common.statusConvertingModel'; - state.isCancelable = false; - state.isProcessing = true; - state.currentStatusHasSteps = false; - }, - modelMergingRequested: (state) => { - state.statusTranslationKey = 'common.statusMergingModels'; - state.isCancelable = false; - state.isProcessing = true; - state.currentStatusHasSteps = false; - }, setEnableImageDebugging: (state, action: PayloadAction) => { state.enableImageDebugging = action.payload; }, @@ -219,14 +161,6 @@ export const systemSlice = createSlice({ clearToastQueue: (state) => { state.toastQueue = []; }, - setProcessingIndeterminateTask: ( - state, - action: PayloadAction - ) => { - state.isProcessing = true; - state.statusTranslationKey = action.payload; - state.currentStatusHasSteps = false; - }, setSearchFolder: (state, action: PayloadAction) => { state.searchFolder = action.payload; }, @@ -485,21 +419,13 @@ export const systemSlice = createSlice({ export const { setIsProcessing, - setIsConnected, setShouldConfirmOnDelete, setCurrentStatus, setShouldDisplayGuides, - processingCanceled, - errorOccurred, setIsCancelable, - modelChangeRequested, - modelConvertRequested, - modelMergingRequested, setEnableImageDebugging, - generationRequested, addToast, clearToastQueue, - setProcessingIndeterminateTask, setSearchFolder, setFoundModels, setOpenModel,