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

mutations.js « store « whats_new « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 725521780dc221c055b63837d15540f0d959f2b6 (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.CLOSE_DRAWER](state) {
    state.open = false;
  },
  [types.OPEN_DRAWER](state) {
    state.open = true;
  },
  [types.ADD_FEATURES](state, data) {
    state.features = state.features.concat(data);
  },
  [types.SET_PAGE_INFO](state, pageInfo) {
    state.pageInfo = pageInfo;
  },
  [types.SET_FETCHING](state, fetching) {
    state.fetching = fetching;
  },
  [types.SET_DRAWER_BODY_HEIGHT](state, height) {
    state.drawerBodyHeight = height;
  },
};