debian-mirror-gitlab/app/assets/javascripts/packages/details/store/mutations.js

15 lines
281 B
JavaScript
Raw Normal View History

2020-10-24 23:57:45 +05:30
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,
};
},
};