mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 13:41:50 +02:00
Merge pull request #1069 from pajecawav/preserve-dashboard-settings
Preserve dashboard settings in localStorage
This commit is contained in:
commit
0d4fe7eb5e
|
@ -7,7 +7,7 @@ import {
|
|||
THEME_CONFIG,
|
||||
DEFAULT_WEBSITE_LIMIT,
|
||||
} from 'lib/constants';
|
||||
import { getItem } from 'lib/web';
|
||||
import { getItem, setItem } from 'lib/web';
|
||||
|
||||
export const defaultDashboardConfig = {
|
||||
showCharts: true,
|
||||
|
@ -42,6 +42,7 @@ export function setUser(user) {
|
|||
|
||||
export function setDashboard(dashboard) {
|
||||
store.setState({ dashboard });
|
||||
setItem(DASHBOARD_CONFIG, dashboard);
|
||||
}
|
||||
|
||||
export default store;
|
||||
|
|
Loading…
Reference in New Issue
Block a user