mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(ui): remove unused state from uiSlice
This commit is contained in:
parent
b76d2cd716
commit
504bdac14a
@ -10,7 +10,6 @@ export const initialUIState: UIState = {
|
|||||||
_version: 1,
|
_version: 1,
|
||||||
activeTab: 'txt2img',
|
activeTab: 'txt2img',
|
||||||
shouldShowImageDetails: false,
|
shouldShowImageDetails: false,
|
||||||
shouldShowExistingModelsInSearch: false,
|
|
||||||
shouldHidePreview: false,
|
shouldHidePreview: false,
|
||||||
shouldShowProgressInViewer: true,
|
shouldShowProgressInViewer: true,
|
||||||
panels: {},
|
panels: {},
|
||||||
@ -29,12 +28,6 @@ export const uiSlice = createSlice({
|
|||||||
setShouldHidePreview: (state, action: PayloadAction<boolean>) => {
|
setShouldHidePreview: (state, action: PayloadAction<boolean>) => {
|
||||||
state.shouldHidePreview = action.payload;
|
state.shouldHidePreview = action.payload;
|
||||||
},
|
},
|
||||||
setShouldShowExistingModelsInSearch: (
|
|
||||||
state,
|
|
||||||
action: PayloadAction<boolean>
|
|
||||||
) => {
|
|
||||||
state.shouldShowExistingModelsInSearch = action.payload;
|
|
||||||
},
|
|
||||||
setShouldShowProgressInViewer: (state, action: PayloadAction<boolean>) => {
|
setShouldShowProgressInViewer: (state, action: PayloadAction<boolean>) => {
|
||||||
state.shouldShowProgressInViewer = action.payload;
|
state.shouldShowProgressInViewer = action.payload;
|
||||||
},
|
},
|
||||||
@ -55,7 +48,6 @@ export const uiSlice = createSlice({
|
|||||||
export const {
|
export const {
|
||||||
setActiveTab,
|
setActiveTab,
|
||||||
setShouldShowImageDetails,
|
setShouldShowImageDetails,
|
||||||
setShouldShowExistingModelsInSearch,
|
|
||||||
setShouldHidePreview,
|
setShouldHidePreview,
|
||||||
setShouldShowProgressInViewer,
|
setShouldShowProgressInViewer,
|
||||||
panelsChanged,
|
panelsChanged,
|
||||||
|
@ -4,7 +4,6 @@ export interface UIState {
|
|||||||
_version: 1;
|
_version: 1;
|
||||||
activeTab: InvokeTabName;
|
activeTab: InvokeTabName;
|
||||||
shouldShowImageDetails: boolean;
|
shouldShowImageDetails: boolean;
|
||||||
shouldShowExistingModelsInSearch: boolean;
|
|
||||||
shouldHidePreview: boolean;
|
shouldHidePreview: boolean;
|
||||||
shouldShowProgressInViewer: boolean;
|
shouldShowProgressInViewer: boolean;
|
||||||
panels: Record<string, string>;
|
panels: Record<string, string>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user