mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
12 lines
404 B
TypeScript
12 lines
404 B
TypeScript
import localStorage from 'sentry/utils/localStorage';
|
|
|
|
const SHOW_TEMPLATES_KEY = 'dashboards-show-templates';
|
|
|
|
export function shouldShowTemplates(): boolean {
|
|
const shouldShow = localStorage.getItem(SHOW_TEMPLATES_KEY);
|
|
return shouldShow === 'true' || shouldShow === null;
|
|
}
|
|
export function setShowTemplates(value: boolean) {
|
|
localStorage.setItem(SHOW_TEMPLATES_KEY, value ? 'true' : 'false');
|
|
}
|