debian-mirror-gitlab/app/assets/javascripts/contributors/stores/mutations.js
2019-12-26 22:10:19 +05:30

17 lines
341 B
JavaScript

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,
});
},
};