Skip to content

Commit

Permalink
fixup! feat(xod-client, xod-project): make "W" button places a tweak …
Browse files Browse the repository at this point in the history
…or watch node while linking
  • Loading branch information
brusherru committed Nov 11, 2020
1 parent 5da28cd commit 86f6856
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/xod-client/src/project/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ const addLinkedNode = nodeKind => (
},
});

export const addInteractiveNode = addLinkedNode(XP.NODE_KIND.INTERACTIVE);
export const addBusNode = addLinkedNode(NODE_KIND.BUS);
export const addTerminalNode = addLinkedNode(NODE_KIND.TERMINAL);
export const addConstantNode = addLinkedNode(NODE_KIND.CONSTANT);
export const addInteractiveNode = addLinkedNode(NODE_KIND.INTERACTIVE);

export const setApiKey = apiKey => ({
type: ActionType.PROJECT_SET_API_KEY,
Expand Down
1 change: 1 addition & 0 deletions packages/xod-client/src/project/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const NODE_KIND = {
BUS: 'BUS_NODE_KIND',
TERMINAL: 'TERMINAL_NODE_KIND',
CONSTANT: 'CONSTANT_NODE_KIND',
INTERACTIVE: 'INTERACTIVE_NODE_KIND',
};

export default {
Expand Down
2 changes: 1 addition & 1 deletion packages/xod-client/src/project/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ export default (state = {}, action) => {
XP.createNode
)(position, newNodeType);
}
case XP.NODE_KIND.INTERACTIVE: {
case NODE_KIND.INTERACTIVE: {
const newNodeType =
pin.direction === XP.PIN_DIRECTION.INPUT
? XP.getTweakPatchPath(pin.type)
Expand Down
1 change: 0 additions & 1 deletion packages/xod-project/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,5 +279,4 @@ const TABTEST_TEMPLATE = 'IN\tOUT\n"some input"\t"expected output"';
export const MANAGED_ATTACHMENT_TEMPLATES = {
[NOT_IMPLEMENTED_IN_XOD_PATH]: IMPL_TEMPLATE,
[TABTEST_MARKER_PATH]: TABTEST_TEMPLATE,
INTERACTIVE: 'INTERACTIVE_NODE_KIND',
};

0 comments on commit 86f6856

Please sign in to comment.