debian-mirror-gitlab/app/assets/javascripts/integrations/edit/store/state.js
2020-11-24 15:15:51 +05:30

11 lines
279 B
JavaScript

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