committed by
Mathias Schopmans
parent
88a7eb55e1
commit
7c08e520fc
@@ -13,4 +13,7 @@ if (userConfig.labels)
|
||||
if (userConfig.toggles)
|
||||
config.toggles = { ...defaultConfig.toggles, ...userConfig.toggles };
|
||||
|
||||
if (userConfig.sections)
|
||||
config.sections = { ...defaultConfig.sections, ...userConfig.sections };
|
||||
|
||||
export default config;
|
||||
|
||||
@@ -12,6 +12,10 @@ export function getToggle(key: keyof typeof config.toggles) {
|
||||
return config.toggles[key] || false;
|
||||
}
|
||||
|
||||
export function getSections() {
|
||||
return config.sections;
|
||||
}
|
||||
|
||||
export function getAppName() {
|
||||
return getLabel("title");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user