Welcome to mirror list, hosted at ThFree Co, Russian Federation.

state.js « store « clusters_list « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 763d7389d0f22dab284cb7659ada42abf2d7fb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { parseBoolean } from '~/lib/utils/common_utils';

export default (initialState = {}) => ({
  ancestorHelperPath: initialState.ancestorHelpPath,
  endpoint: initialState.endpoint,
  hasAncestorClusters: false,
  clusters: [],
  clustersPerPage: 20,
  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 },
  },
  totalClusters: 0,
  canAddCluster: parseBoolean(initialState.canAddCluster),
});