debian-mirror-gitlab/app/assets/javascripts/grafana_integration/store/mutations.js
2019-12-26 22:10:19 +05:30

13 lines
307 B
JavaScript

import * as types from './mutation_types';
export default {
[types.SET_GRAFANA_URL](state, url) {
state.grafanaUrl = url;
},
[types.SET_GRAFANA_TOKEN](state, token) {
state.grafanaToken = token;
},
[types.SET_GRAFANA_ENABLED](state, enabled) {
state.grafanaEnabled = enabled;
},
};