Skip to content

Commit

Permalink
feat(xod-client, xod-client-electron): support tweaking color using C…
Browse files Browse the repository at this point in the history
…olorPicker widget in debug session
  • Loading branch information
brusherru committed Feb 5, 2020
1 parent a95f74d commit c517206
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export default ({ getState }) => next => action => {

const isTweakActionType =
action.type === client.NODE_UPDATE_PROPERTY ||
action.type === client.TWEAK_PULSE_SENT;
action.type === client.TWEAK_PULSE_SENT ||
action.type === client.NODE_PROPERTY_TWEAKED;
if (isTweakActionType && client.isSerialDebugRunning(state)) {
const { id: nodeId, value = '', patchPath } = action.payload;
const nodeType = R.compose(
Expand Down
8 changes: 7 additions & 1 deletion packages/xod-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
TAB_CLOSE,
INSTALL_LIBRARIES_COMPLETE,
TWEAK_PULSE_SENT,
NODE_PROPERTY_TWEAKED,
} from './editor/actionTypes';
import { SAVE_ALL, NODE_UPDATE_PROPERTY } from './project/actionTypes';

Expand Down Expand Up @@ -88,7 +89,11 @@ export {
export { LOG_TAB_TYPE } from './debugger/constants';

export { MESSAGE_BUTTON_CLICKED } from './messages/actionTypes';
export { TAB_CLOSE, INSTALL_LIBRARIES_COMPLETE } from './editor/actionTypes';
export {
TAB_CLOSE,
INSTALL_LIBRARIES_COMPLETE,
NODE_PROPERTY_TWEAKED,
} from './editor/actionTypes';
export {
SAVE_ALL,
NODE_UPDATE_PROPERTY,
Expand Down Expand Up @@ -184,6 +189,7 @@ export default Object.assign(
TAB_CLOSE,
SAVE_ALL,
NODE_UPDATE_PROPERTY,
NODE_PROPERTY_TWEAKED,
TWEAK_PULSE_SENT,
INSTALL_LIBRARIES_COMPLETE,
MESSAGE_BUTTON_CLICKED,
Expand Down

0 comments on commit c517206

Please sign in to comment.