fix: select action on connecting two state
This commit is contained in:
parent
b6aa76b7ef
commit
277c5e16d2
1 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ onConnect(edge => {
|
|||
id: "action-" + frappe.utils.get_random(5),
|
||||
type: "action",
|
||||
position: { x: center_x, y: center_y },
|
||||
selected: true,
|
||||
data: {
|
||||
action: "",
|
||||
allowed: "All",
|
||||
|
|
@ -104,6 +105,8 @@ onConnect(edge => {
|
|||
y: node.position.y - node.dimensions.height / 2
|
||||
};
|
||||
stop();
|
||||
node.selected = true;
|
||||
store.workflow.selected = node;
|
||||
store.ref_history.commit();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue