debian-mirror-gitlab/app/assets/javascripts/packages/details/store/mutations.js
2020-10-24 23:57:45 +05:30

14 lines
281 B
JavaScript

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,
};
},
};