Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mutations.js « list « store « error_tracking « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4bd81db9c90d692633c51100b576a03e29796a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import * as types from './mutation_types';
import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';

export default {
  [types.SET_ERRORS](state, data) {
    state.errors = convertObjectPropsToCamelCase(data, { deep: true });
  },
  [types.SET_EXTERNAL_URL](state, url) {
    state.externalUrl = url;
  },
  [types.SET_LOADING](state, loading) {
    state.loading = loading;
  },
};