debian-mirror-gitlab/app/assets/javascripts/mr_notes/stores/mutations.js
2021-04-29 21:17:54 +05:30

13 lines
341 B
JavaScript

import types from './mutation_types';
export default {
[types.SET_ACTIVE_TAB](state, tab) {
Object.assign(state, { activeTab: tab });
},
[types.SET_ENDPOINTS](state, endpoints) {
Object.assign(state, { endpoints });
},
[types.SET_MR_METADATA](state, metadata) {
Object.assign(state, { mrMetadata: metadata });
},
};