Welcome to mirror list, hosted at ThFree Co, Russian Federation.

state.js « store « edit « integrations « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a9ecee6c5396383170bb732c2edd86d5071abc26 (plain)
1
2
3
4
5
6
7
8
9
10
11
export default ({ defaultState = null, customState = {} } = {}) => {
  const override = defaultState !== null ? defaultState.id !== customState.inheritFromId : false;

  return {
    override,
    defaultState,
    customState,
    isSaving: false,
    isTesting: false,
  };
};