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:
parent
4c49ed000a
commit
209ab25ab0
6 changed files with 18020 additions and 6 deletions
|
@ -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`,
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue