summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/projects/gke_cluster_dropdowns/store/mutations.js
blob: 95b7ed680532b9372abafa4c31b02c54dbd973b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import * as types from './mutation_types';

export default {
  [types.SET_PROJECT](state, selectedProject) {
    Object.assign(state, { selectedProject });
  },
  [types.SET_ZONE](state, selectedZone) {
    Object.assign(state, { selectedZone });
  },
  [types.SET_MACHINE_TYPE](state, selectedMachineType) {
    Object.assign(state, { selectedMachineType });
  },
  [types.SET_PROJECTS](state, projects) {
    Object.assign(state, { projects });
  },
  [types.SET_ZONES](state, zones) {
    Object.assign(state, { zones });
  },
  [types.SET_MACHINE_TYPES](state, machineTypes) {
    Object.assign(state, { machineTypes });
  },
};