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

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

export default (initialState = {}) => ({
  projectEnabled: parseBoolean(initialState.selfMonitoringProjectExists) || false,
  projectCreated: parseBoolean(initialState.selfMonitoringProjectExists) || false,
  createProjectEndpoint: initialState.createSelfMonitoringProjectPath || '',
  deleteProjectEndpoint: initialState.deleteSelfMonitoringProjectPath || '',
  createProjectStatusEndpoint: initialState.statusCreateSelfMonitoringProjectPath || '',
  deleteProjectStatusEndpoint: initialState.statusDeleteSelfMonitoringProjectPath || '',
  selfMonitorProjectPath: initialState.selfMonitoringProjectFullPath || '',
  showAlert: false,
  projectPath: initialState.selfMonitoringProjectFullPath || '',
  loading: false,
  alertContent: {},
});