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
e7e7793896
commit
b74e0de74a
@ -10,7 +10,6 @@ export const initialUIState: UIState = {
|
|||||||
_version: 1,
|
_version: 1,
|
||||||
activeTab: 'txt2img',
|
activeTab: 'txt2img',
|
||||||
shouldShowImageDetails: false,
|
shouldShowImageDetails: false,
|
||||||
shouldHidePreview: false,
|
|
||||||
shouldShowProgressInViewer: true,
|
shouldShowProgressInViewer: true,
|
||||||
panels: {},
|
panels: {},
|
||||||
accordions: {},
|
accordions: {},
|
||||||
@ -27,9 +26,6 @@ export const uiSlice = createSlice({
|
|||||||
setShouldShowImageDetails: (state, action: PayloadAction<boolean>) => {
|
setShouldShowImageDetails: (state, action: PayloadAction<boolean>) => {
|
||||||
state.shouldShowImageDetails = action.payload;
|
state.shouldShowImageDetails = action.payload;
|
||||||
},
|
},
|
||||||
setShouldHidePreview: (state, action: PayloadAction<boolean>) => {
|
|
||||||
state.shouldHidePreview = action.payload;
|
|
||||||
},
|
|
||||||
setShouldShowProgressInViewer: (state, action: PayloadAction<boolean>) => {
|
setShouldShowProgressInViewer: (state, action: PayloadAction<boolean>) => {
|
||||||
state.shouldShowProgressInViewer = action.payload;
|
state.shouldShowProgressInViewer = action.payload;
|
||||||
},
|
},
|
||||||
@ -43,7 +39,7 @@ export const uiSlice = createSlice({
|
|||||||
state,
|
state,
|
||||||
action: PayloadAction<{ id: string; isOpen: boolean }>
|
action: PayloadAction<{ id: string; isOpen: boolean }>
|
||||||
) => {
|
) => {
|
||||||
const { id, isOpen } = action.payload;
|
const { id, isOpen } = action.payload;
|
||||||
state.accordions[id] = isOpen;
|
state.accordions[id] = isOpen;
|
||||||
},
|
},
|
||||||
expanderStateChanged: (
|
expanderStateChanged: (
|
||||||
@ -64,7 +60,6 @@ export const uiSlice = createSlice({
|
|||||||
export const {
|
export const {
|
||||||
setActiveTab,
|
setActiveTab,
|
||||||
setShouldShowImageDetails,
|
setShouldShowImageDetails,
|
||||||
setShouldHidePreview,
|
|
||||||
setShouldShowProgressInViewer,
|
setShouldShowProgressInViewer,
|
||||||
panelsChanged,
|
panelsChanged,
|
||||||
accordionStateChanged,
|
accordionStateChanged,
|
||||||
|
@ -13,10 +13,6 @@ export interface UIState {
|
|||||||
* Whether or not to show image details, e.g. metadata, workflow, etc.
|
* Whether or not to show image details, e.g. metadata, workflow, etc.
|
||||||
*/
|
*/
|
||||||
shouldShowImageDetails: boolean;
|
shouldShowImageDetails: boolean;
|
||||||
/**
|
|
||||||
* Whether or not to hide the preview.
|
|
||||||
*/
|
|
||||||
shouldHidePreview: boolean;
|
|
||||||
/**
|
/**
|
||||||
* Whether or not to show progress in the viewer.
|
* Whether or not to show progress in the viewer.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user