grafana/public/app/features/dashboard/components/PanelEditor/state/utils.ts
Torkel Ödegaard 3aa8eb0176
NewPanelEdit: Improvements to angular panels and other fixes (#23678)
* 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
2020-04-20 08:47:25 +02:00

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);
}