[agent-pipeline] pipe-20260311182531-f443 round-2
This commit is contained in:
parent
5baf5842b4
commit
a99a59951e
|
|
@ -43,6 +43,14 @@ export const V2ApprovalStepConfigPanel: React.FC<V2ApprovalStepConfigPanelProps>
|
||||||
|
|
||||||
const handleChange = (key: keyof ApprovalStepConfig, value: any) => {
|
const handleChange = (key: keyof ApprovalStepConfig, value: any) => {
|
||||||
onChange({ [key]: value });
|
onChange({ [key]: value });
|
||||||
|
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
window.dispatchEvent(
|
||||||
|
new CustomEvent("componentConfigChanged", {
|
||||||
|
detail: { config: { ...config, [key]: value } },
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
@ -102,9 +110,17 @@ export const V2ApprovalStepConfigPanel: React.FC<V2ApprovalStepConfigPanelProps>
|
||||||
|
|
||||||
const handleTableChange = (newTableName: string) => {
|
const handleTableChange = (newTableName: string) => {
|
||||||
if (newTableName === targetTableName) return;
|
if (newTableName === targetTableName) return;
|
||||||
handleChange("targetTable", newTableName);
|
const patch = { targetTable: newTableName, targetRecordIdField: "" };
|
||||||
handleChange("targetRecordIdField", "");
|
onChange(patch);
|
||||||
setTableOpen(false);
|
setTableOpen(false);
|
||||||
|
|
||||||
|
if (typeof window !== "undefined") {
|
||||||
|
window.dispatchEvent(
|
||||||
|
new CustomEvent("componentConfigChanged", {
|
||||||
|
detail: { config: { ...config, ...patch } },
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -376,4 +392,6 @@ export const V2ApprovalStepConfigPanel: React.FC<V2ApprovalStepConfigPanelProps>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
V2ApprovalStepConfigPanel.displayName = "V2ApprovalStepConfigPanel";
|
||||||
|
|
||||||
export default V2ApprovalStepConfigPanel;
|
export default V2ApprovalStepConfigPanel;
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import {
|
||||||
CollapsibleContent,
|
CollapsibleContent,
|
||||||
CollapsibleTrigger,
|
CollapsibleTrigger,
|
||||||
} from "@/components/ui/collapsible";
|
} from "@/components/ui/collapsible";
|
||||||
import { Settings, ChevronDown, Minus, MoreHorizontal, Equal } from "lucide-react";
|
import { Settings, ChevronDown } from "lucide-react";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
const THICKNESS_CARDS = [
|
const THICKNESS_CARDS = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue