mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Removed old editor components * Angular panel improvements * Progress * Updated tests * Simple persistence for angular panel option state * Improving graph edit experiance * Improving series overrides * updated e2e test * Regstry: refactoring
10 lines
317 B
TypeScript
10 lines
317 B
TypeScript
import store from 'app/core/store';
|
|
|
|
export function saveSectionOpenState(id: string, isOpen: boolean) {
|
|
store.set(`panel-edit-section-${id}`, isOpen ? 'true' : 'false');
|
|
}
|
|
|
|
export function getSectionOpenState(id: string, defaultValue: boolean) {
|
|
return store.getBool(`panel-edit-section-${id}`, defaultValue);
|
|
}
|