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

mutations.js « store « accessibility_report « reports « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 20d3e5be9a395a9060e21dbf4527b1bda723e58c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import * as types from './mutation_types';

export default {
  [types.SET_ENDPOINT](state, endpoint) {
    state.endpoint = endpoint;
  },
  [types.REQUEST_REPORT](state) {
    state.isLoading = true;
  },
  [types.RECEIVE_REPORT_SUCCESS](state, report) {
    state.hasError = false;
    state.isLoading = false;
    state.report = report;
  },
  [types.RECEIVE_REPORT_ERROR](state) {
    state.isLoading = false;
    state.hasError = true;
    state.report = {};
  },
};