blob: 06e467c04f1beff1fc0021a5165eafb2a060961a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import * as types from './mutation_types';
export default {
[types.SET_ENDPOINT](state, endpoint) {
state.endpoint = endpoint;
},
[types.SET_PATH](state, path) {
state.path = path;
},
[types.REQUEST_CREATE_FEATURE_FLAG](state) {
state.isSendingRequest = true;
state.error = [];
},
[types.RECEIVE_CREATE_FEATURE_FLAG_SUCCESS](state) {
state.isSendingRequest = false;
},
[types.RECEIVE_CREATE_FEATURE_FLAG_ERROR](state, error) {
state.isSendingRequest = false;
state.error = error.message || [];
},
};
|