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

getters.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: 4ee5f11855cca0adaccbd37be5c2a787117ebd16 (plain)
1
2
3
4
5
6
7
8
export const isInheriting = state => (state.defaultState === null ? false : !state.override);

export const isSavingOrTesting = state => state.isSaving || state.isTesting;

export const propsSource = (state, getters) =>
  getters.isInheriting ? state.defaultState : state.customState;

export const currentKey = (state, getters) => (getters.isInheriting ? 'admin' : 'custom');