965 flow control arrow menu 1/3 add insert step button (#12519)
Add insert step button to workflow edges https://github.com/user-attachments/assets/7144f722-f1c7-450f-a8eb-c902071986a1 Also fixes `iconButtonGroup` UI component ## Before https://github.com/user-attachments/assets/7b5f0245-d0e8-48af-9aa5-a29388a1caea ## After https://github.com/user-attachments/assets/1820874f-aa99-41ae-8254-c76c275ee3ae
This commit is contained in:
+9
-4
@@ -1,9 +1,14 @@
|
||||
import { createComponentStateV2 } from '@/ui/utilities/state/component-state/utils/createComponentStateV2';
|
||||
import { WorkflowVisualizerComponentInstanceContext } from '@/workflow/workflow-diagram/states/contexts/WorkflowVisualizerComponentInstanceContext';
|
||||
|
||||
export const workflowCreateStepFromParentStepIdComponentState =
|
||||
createComponentStateV2<string | undefined>({
|
||||
key: 'workflowCreateStepFromParentStepIdComponentState',
|
||||
defaultValue: undefined,
|
||||
type WorkflowInsertStepIdsState = {
|
||||
parentStepId: string | undefined;
|
||||
nextStepId: string | undefined;
|
||||
};
|
||||
|
||||
export const workflowInsertStepIdsComponentState =
|
||||
createComponentStateV2<WorkflowInsertStepIdsState>({
|
||||
key: 'workflowInsertStepIdsComponentState',
|
||||
defaultValue: { parentStepId: undefined, nextStepId: undefined },
|
||||
componentInstanceContext: WorkflowVisualizerComponentInstanceContext,
|
||||
});
|
||||
Reference in New Issue
Block a user