blob: b68bd66898046ed7dd6679ce8b867828db3d7774 (
plain)
1
2
3
4
5
6
|
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');
|