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

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

export default {
  [types.FETCH_USER_LISTS](state) {
    state.status = statuses.LOADING;
  },
  [types.RECEIVE_USER_LISTS_SUCCESS](state, lists) {
    state.userLists = lists;
    state.status = statuses.IDLE;
  },
  [types.RECEIVE_USER_LISTS_ERROR](state, error) {
    state.error = error;
    state.status = statuses.ERROR;
  },
  [types.SET_FILTER](state, filter) {
    state.filter = filter;
  },
};