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

mutations.js « store « details « packages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 762fd5a40403402044a9dad2c2038abcb0600d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import * as types from './mutation_types';

export default {
  [types.SET_LOADING](state, isLoading) {
    state.isLoading = isLoading;
  },

  [types.SET_PACKAGE_VERSIONS](state, versions) {
    state.packageEntity = {
      ...state.packageEntity,
      versions,
    };
  },
  [types.UPDATE_PACKAGE_FILES](state, files) {
    state.packageFiles = files;
  },
};