mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): open viewer on image click, not select
This commit is contained in:
committed by
Kent Keirsey
parent
8794b99d51
commit
5cb1ff8679
@@ -31,11 +31,9 @@ export const gallerySlice = createSlice({
|
||||
reducers: {
|
||||
imageSelected: (state, action: PayloadAction<ImageDTO | null>) => {
|
||||
state.selection = action.payload ? [action.payload] : [];
|
||||
state.isImageViewerOpen = true;
|
||||
},
|
||||
selectionChanged: (state, action: PayloadAction<ImageDTO[]>) => {
|
||||
state.selection = uniqBy(action.payload, (i) => i.image_name);
|
||||
state.isImageViewerOpen = true;
|
||||
},
|
||||
shouldAutoSwitchChanged: (state, action: PayloadAction<boolean>) => {
|
||||
state.shouldAutoSwitch = action.payload;
|
||||
|
||||
Reference in New Issue
Block a user