summaryrefslogtreecommitdiff
path: root/frontend/views/graph/graph.actions.js
blob: 90d0f966477b2b0453db181d4090bc0902387df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import * as types from '../../types'

export const showAddPageForm = () => dispatch => {
  dispatch({ type: types.graph.show_add_page_form })
}

export const hideAddPageForm = () => dispatch => {
  dispatch({ type: types.graph.hide_add_page_form })
}

export const updateGraphPage = page => dispatch => {
  dispatch({ type: types.graph.update_graph_page, page })
}