debian-mirror-gitlab/app/assets/javascripts/contributors/stores/mutations.js

18 lines
341 B
JavaScript
Raw Normal View History

2019-12-26 22:10:19 +05:30
import * as types from './mutation_types';
export default {
[types.SET_LOADING_STATE](state, value) {
state.loading = value;
},
[types.SET_CHART_DATA](state, chartData) {
Object.assign(state, {
chartData,
});
},
[types.SET_ACTIVE_BRANCH](state, branch) {
Object.assign(state, {
branch,
});
},
};