summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/serverless/store/state.js
blob: 353bfcf3fedfea853c5471dff8837b9e578b57a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
export default (
  initialState = { clustersPath: null, helpPath: null, emptyImagePath: null, statusPath: null },
) => ({
  clustersPath: initialState.clustersPath,
  error: null,
  helpPath: initialState.helpPath,
  installed: 'checking',
  isLoading: true,

  // functions
  functions: [],
  hasFunctionData: true,
  statusPath: initialState.statusPath,

  // function_details
  hasPrometheus: true,
  hasPrometheusData: false,
  graphData: {},

  // empty_state
  emptyImagePath: initialState.emptyImagePath,
});