debian-mirror-gitlab/app/assets/javascripts/whats_new/store/mutations.js

23 lines
526 B
JavaScript
Raw Normal View History

2020-10-24 23:57:45 +05:30
import * as types from './mutation_types';
export default {
[types.CLOSE_DRAWER](state) {
state.open = false;
},
[types.OPEN_DRAWER](state) {
state.open = true;
},
2021-01-29 00:20:46 +05:30
[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;
2021-01-03 14:25:43 +05:30
},
2020-10-24 23:57:45 +05:30
};