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

state.js « store « settings « registry « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 582e18e546574a8288d6da425421556be450a618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export default () => ({
  /*
   * Project Id used to build the API call
   */
  projectId: '',
  /*
   * Boolean to determine if the UI is loading data from the API
   */
  isLoading: false,
  /*
   * Boolean to determine if the user is allowed to interact with the form
   */
  isDisabled: false,
  /*
   * This contains the data shown and manipulated in the UI
   * Has the following structure:
   * {
   *  enabled: Boolean
   *  cadence: String,
   *  older_than: String,
   *  keep_n: String,
   *  name_regex: String
   * }
   */
  settings: {},
  /*
   * Same structure as settings, above but Frozen object and used only in case the user clicks 'cancel'
   */
  original: {},
  /*
   * Contains the options used to populate the form selects
   */
  formOptions: {},
});