mirror of
https://github.com/directus/directus.git
synced 2026-02-11 11:24:56 -05:00
* Remove unused nested folders from components * Remove nested folders * Standardize composables output * Fix import inconsistencies * Same trick for directives * Same for routes * Replace reliance root grouped export in favor of explicit imports * Replace reliance on implicit imports * Remove nested folder structure * Consistent use of non-default exports in utils * Remove nested folder structure from private components * Fix test mock * Remove extraneous component registration for valuenull * Fix stores provider * Fix logo sprite
9 lines
293 B
TypeScript
9 lines
293 B
TypeScript
import { useSettingsStore } from '@/stores/settings';
|
|
import { Settings } from '@directus/shared/types';
|
|
|
|
export function getSetting(setting: keyof Settings): any {
|
|
const settingsStore = useSettingsStore();
|
|
if (settingsStore.settings) return settingsStore.settings[setting];
|
|
return null;
|
|
}
|