summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/create_cluster/eks_cluster/store/mutations.js
blob: 748a78e0b1e9c9c051141a4378c967f1aca19e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import * as types from './mutation_types';

export default {
  [types.SET_REGION](state, { region }) {
    state.selectedRegion = region;
  },
  [types.SET_KEY_PAIR](state, { keyPair }) {
    state.selectedKeyPair = keyPair;
  },
  [types.SET_VPC](state, { vpc }) {
    state.selectedVpc = vpc;
  },
  [types.SET_SUBNET](state, { subnet }) {
    state.selectedSubnet = subnet;
  },
  [types.SET_ROLE](state, { role }) {
    state.selectedRole = role;
  },
};