summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/clusters_list/store/state.js
blob: 51fafd49479fbde625f8e3c1df19279eb69caa7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export default (initialState = {}) => ({
  ancestorHelperPath: initialState.ancestorHelpPath,
  endpoint: initialState.endpoint,
  hasAncestorClusters: false,
  clusters: [],
  clustersPerPage: 0,
  loadingClusters: true,
  loadingNodes: true,
  page: 1,
  providers: {
    aws: { path: initialState.imgTagsAwsPath, text: initialState.imgTagsAwsText },
    default: { path: initialState.imgTagsDefaultPath, text: initialState.imgTagsDefaultText },
    gcp: { path: initialState.imgTagsGcpPath, text: initialState.imgTagsGcpText },
  },
  totalCulsters: 0,
});