debian-mirror-gitlab/app/assets/javascripts/integrations/edit/store/state.js

16 lines
406 B
JavaScript
Raw Normal View History

2020-11-24 15:15:51 +05:30
export default ({ defaultState = null, customState = {} } = {}) => {
const override = defaultState !== null ? defaultState.id !== customState.inheritFromId : false;
2020-07-28 23:09:34 +05:30
return {
override,
2020-11-24 15:15:51 +05:30
defaultState,
2020-07-28 23:09:34 +05:30
customState,
2020-11-24 15:15:51 +05:30
isSaving: false,
isTesting: false,
2021-01-29 00:20:46 +05:30
isResetting: false,
2021-03-11 19:13:27 +05:30
isLoadingJiraIssueTypes: false,
loadingJiraIssueTypesErrorMessage: '',
jiraIssueTypes: [],
2020-07-28 23:09:34 +05:30
};
};