PluginProbe
Extendify / 3.1.5
Extendify v3.1.5
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Agent / workflows / block-selector / components / BlockPatchingConfirm.jsx

BlockPatchingConfirm.jsx in Extendify 3.1.5, at src/Agent/workflows/block-selector/components/BlockPatchingConfirm.jsx

15 lines 674 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { ReplaceImageConfirm } from '@agent/workflows/block-selector/components/ReplaceImageConfirm';
2 import { UpdateBlockConfirm } from '@agent/workflows/block-selector/components/UpdateBlockConfirm';
3
4 // The backend never mixes replace-image with other ops, so a pure image
5 // batch gets the dedicated generate/upload UI.
6 export const BlockPatchingConfirm = (props) => {
7 const operations = props.inputs?.operations;
8 const onlyImages =
9 Array.isArray(operations) &&
10 operations.length > 0 &&
11 operations.every((operation) => operation?.op === 'replace-image');
12 const Confirm = onlyImages ? ReplaceImageConfirm : UpdateBlockConfirm;
13 return <Confirm {...props} />;
14 };
15