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

state.js « stores « forms « clusters « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d6ac1925d8c59214b596d8d642bb39cb240f59c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { parseBoolean } from '~/lib/utils/common_utils';

export default (initialState = {}) => {
  return {
    enabled: parseBoolean(initialState.enabled),
    editable: parseBoolean(initialState.editable),
    environmentScope: initialState.environmentScope,
    baseDomain: initialState.baseDomain,
    autoDevopsHelpPath: initialState.autoDevopsHelpPath,
    externalEndpointHelpPath: initialState.externalEndpointHelpPath,
  };
};