feat(ui): add enabled state for RP

This commit is contained in:
psychedelicious
2024-04-19 16:06:08 +10:00
committed by Kent Keirsey
parent 9b5c47748d
commit 3c5b728bee
4 changed files with 46 additions and 6 deletions

View File

@@ -19,6 +19,9 @@ import type { CollectInvocation, Edge, NonNullableGraph, S } from 'services/api/
import { assert } from 'tsafe';
export const addRegionalPromptsToGraph = async (state: RootState, graph: NonNullableGraph, denoiseNodeId: string) => {
if (!state.regionalPrompts.present.isEnabled) {
return;
}
const { dispatch } = getStore();
// TODO: Handle non-SDXL
// const isSDXL = state.generation.model?.base === 'sdxl';