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

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

export default {
  [types.REQUEST_STATISTICS](state) {
    state.isLoading = true;
  },
  [types.RECEIVE_STATISTICS_SUCCESS](state, data) {
    state.isLoading = false;
    state.error = null;
    state.statistics = data;
  },
  [types.RECEIVE_STATISTICS_ERROR](state, error) {
    state.isLoading = false;
    state.error = error;
  },
};