debian-mirror-gitlab/app/assets/javascripts/serverless/store/state.js

23 lines
516 B
JavaScript
Raw Normal View History

2020-10-24 23:57:45 +05:30
export default (
initialState = { clustersPath: null, helpPath: null, emptyImagePath: null, statusPath: null },
) => ({
clustersPath: initialState.clustersPath,
2019-07-07 11:18:12 +05:30
error: null,
2020-10-24 23:57:45 +05:30
helpPath: initialState.helpPath,
2019-09-04 21:01:54 +05:30
installed: 'checking',
2019-07-07 11:18:12 +05:30
isLoading: true,
// functions
functions: [],
hasFunctionData: true,
2020-10-24 23:57:45 +05:30
statusPath: initialState.statusPath,
2019-07-07 11:18:12 +05:30
// function_details
hasPrometheus: true,
hasPrometheusData: false,
graphData: {},
2020-10-24 23:57:45 +05:30
// empty_state
emptyImagePath: initialState.emptyImagePath,
2019-07-07 11:18:12 +05:30
});