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

mutations.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: 7dca8bcdc4dce86a0a29d9930d906f50bac93340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import * as types from './mutation_types';

export default {
  [types.SET_ENABLED](state, enabled) {
    state.projectEnabled = enabled;
  },
  [types.SET_PROJECT_CREATED](state, created) {
    state.projectCreated = created;
  },
  [types.SET_SHOW_ALERT](state, show) {
    state.showAlert = show;
  },
  [types.SET_PROJECT_URL](state, url) {
    state.projectPath = url;
  },
  [types.SET_LOADING](state, loading) {
    state.loading = loading;
  },
  [types.SET_ALERT_CONTENT](state, content) {
    state.alertContent = content;
  },
};