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

7 lines
295 B
JavaScript
Raw Normal View History

2020-07-28 23:09:34 +05:30
export const isInheriting = state => (state.adminState === null ? false : !state.override);
export const propsSource = (state, getters) =>
getters.isInheriting ? state.adminState : state.customState;
export const currentKey = (state, getters) => (getters.isInheriting ? 'admin' : 'custom');