summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/mr_notes/stores/mutations.js
blob: 8b17f63cfb15074a6bdb510ee7c4938e738b7f83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 });
  },
  [types.SET_FAILED_TO_LOAD_METADATA](state, value) {
    Object.assign(state, { failedToLoadMetadata: value });
  },
};