From ace115d0e783ce68e7fda41e67444260dcbbe94a Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Tue, 29 Dec 2020 17:04:12 +0100 Subject: [PATCH] feat(admin-ui): Persist dashboard layout to localStorage --- .../dashboard/src/components/dashboard/dashboard.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/admin-ui/src/lib/dashboard/src/components/dashboard/dashboard.component.ts b/packages/admin-ui/src/lib/dashboard/src/components/dashboard/dashboard.component.ts index 867bf0098f..2f7565c4cc 100644 --- a/packages/admin-ui/src/lib/dashboard/src/components/dashboard/dashboard.component.ts +++ b/packages/admin-ui/src/lib/dashboard/src/components/dashboard/dashboard.component.ts @@ -136,6 +136,7 @@ export class DashboardComponent implements OnInit { width: item.width, })); this.widgetLayout = this.dashboardWidgetService.getWidgetLayout(newLayoutDef); + this.localStorageService.set('dashboardWidgetLayout', newLayoutDef); setTimeout(() => this.changedDetectorRef.markForCheck()); } }