mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): process buttons display on canvas beta
This commit is contained in:
@ -11,7 +11,10 @@ import { FaSlidersH } from 'react-icons/fa';
|
|||||||
|
|
||||||
export default function UnifiedCanvasProcessingButtons() {
|
export default function UnifiedCanvasProcessingButtons() {
|
||||||
const shouldPinParametersPanel = useAppSelector(
|
const shouldPinParametersPanel = useAppSelector(
|
||||||
(state: RootState) => state.ui.shouldPinParametersPanel
|
(state) => state.ui.shouldPinParametersPanel
|
||||||
|
);
|
||||||
|
const shouldShowParametersPanel = useAppSelector(
|
||||||
|
(state) => state.ui.shouldShowParametersPanel
|
||||||
);
|
);
|
||||||
|
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
@ -22,7 +25,7 @@ export default function UnifiedCanvasProcessingButtons() {
|
|||||||
shouldPinParametersPanel && dispatch(requestCanvasRescale());
|
shouldPinParametersPanel && dispatch(requestCanvasRescale());
|
||||||
};
|
};
|
||||||
|
|
||||||
return !shouldPinParametersPanel ? (
|
return !shouldPinParametersPanel || !shouldShowParametersPanel ? (
|
||||||
<Flex flexDirection="column" gap={2}>
|
<Flex flexDirection="column" gap={2}>
|
||||||
<IAIIconButton
|
<IAIIconButton
|
||||||
tooltip={`${t('parameters.showOptionsPanel')} (O)`}
|
tooltip={`${t('parameters.showOptionsPanel')} (O)`}
|
||||||
|
Reference in New Issue
Block a user