debian-mirror-gitlab/app/assets/javascripts/integrations/edit/store/state.js
2021-01-29 00:20:46 +05:30

12 lines
303 B
JavaScript

export default ({ defaultState = null, customState = {} } = {}) => {
const override = defaultState !== null ? defaultState.id !== customState.inheritFromId : false;
return {
override,
defaultState,
customState,
isSaving: false,
isTesting: false,
isResetting: false,
};
};