1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16:41 +07:00

fetching and saving nodes

This commit is contained in:
muerwre 2019-08-25 11:10:04 +07:00
parent 4c49ed000a
commit 209ab25ab0
6 changed files with 18020 additions and 6 deletions

View file

@ -1,6 +1,6 @@
const prefix = 'FLOW.';
export const FLOW_ACTIONS = {
GET_FLOW: `${prefix}.GET_FLOW`,
SET_NODES: `${prefix}.SET_NODES`,
GET_FLOW: `${prefix}GET_FLOW`,
SET_NODES: `${prefix}SET_NODES`,
};

View file

@ -2,3 +2,4 @@ import { IState } from '../store';
import { IFlowState } from './reducer';
export const selectFlow = (state: IState): IFlowState => state.flow;
export const selectFlowNodes = (state: IState) => state.flow.nodes;