mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): change tab to img2img when selected initial image
This commit is contained in:
parent
54b65f725f
commit
bf7ea8309f
@ -3,6 +3,8 @@ import { createSlice } from '@reduxjs/toolkit';
|
|||||||
import { setActiveTabReducer } from './extraReducers';
|
import { setActiveTabReducer } from './extraReducers';
|
||||||
import { InvokeTabName, tabMap } from './tabMap';
|
import { InvokeTabName, tabMap } from './tabMap';
|
||||||
import { AddNewModelType, Coordinates, Rect, UIState } from './uiTypes';
|
import { AddNewModelType, Coordinates, Rect, UIState } from './uiTypes';
|
||||||
|
import { initialImageSelected } from 'features/parameters/store/actions';
|
||||||
|
import { initialImageChanged } from 'features/parameters/store/generationSlice';
|
||||||
|
|
||||||
export const initialUIState: UIState = {
|
export const initialUIState: UIState = {
|
||||||
activeTab: 0,
|
activeTab: 0,
|
||||||
@ -145,6 +147,11 @@ export const uiSlice = createSlice({
|
|||||||
state.shouldShowImageParameters = action.payload;
|
state.shouldShowImageParameters = action.payload;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
extraReducers(builder) {
|
||||||
|
builder.addCase(initialImageChanged, (state) => {
|
||||||
|
setActiveTabReducer(state, 'img2img');
|
||||||
|
});
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export const {
|
export const {
|
||||||
|
Loading…
Reference in New Issue
Block a user