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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
459 B
JavaScript
Raw Normal View History

2018-11-08 19:23:39 +05:30
import types from './mutation_types';
export default {
[types.SET_ACTIVE_TAB](state, tab) {
Object.assign(state, { activeTab: tab });
},
2021-04-29 21:17:54 +05:30
[types.SET_ENDPOINTS](state, endpoints) {
Object.assign(state, { endpoints });
},
[types.SET_MR_METADATA](state, metadata) {
Object.assign(state, { mrMetadata: metadata });
},
2022-06-21 17:19:12 +05:30
[types.SET_FAILED_TO_LOAD_METADATA](state, value) {
Object.assign(state, { failedToLoadMetadata: value });
},
2018-11-08 19:23:39 +05:30
};