From 016c3604a7c27344b45cc2aae0e132e06702ff6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Mon, 29 Jul 2024 19:18:43 +0200 Subject: [PATCH] Rename stored keys to reset (#767) --- src/dashboards/hacs-dashboard.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dashboards/hacs-dashboard.ts b/src/dashboards/hacs-dashboard.ts index 66143d3b..0c9c58b6 100644 --- a/src/dashboards/hacs-dashboard.ts +++ b/src/dashboards/hacs-dashboard.ts @@ -81,25 +81,25 @@ export class HacsDashboard extends LitElement { @property({ type: Boolean }) public isWide!: boolean; - @storage({ key: "hacs-table-filter", state: true, subscribe: false }) + @storage({ key: "hacs-dashboard-table-filtering", state: true, subscribe: false }) private _activeFilters?: string[] = []; - @storage({ key: "hacs-table-sort", state: false, subscribe: false }) + @storage({ key: "hacs-dashboard-table-sorting", state: false, subscribe: false }) private _activeSorting?: { column: string; direction: SortingDirection }; - @storage({ key: "hacs-table-grouping", state: true, subscribe: false }) + @storage({ key: "hacs-dashboard-table-grouping", state: true, subscribe: false }) private _activeGrouping?: string; - @storage({ key: "hacs-table-collapsed", state: false, subscribe: false }) + @storage({ key: "hacs-dashboard-table-collapsed", state: false, subscribe: false }) private _activeCollapsed?: string[]; - @storage({ key: "hacs-active-search", state: true, subscribe: false }) + @storage({ key: "hacs-dashboard-active-search", state: true, subscribe: false }) private _activeSearch?: string; - @storage({ key: "hacs-table-hidden-columns", state: true, subscribe: false }) + @storage({ key: "hacs-dashboard-table-hidden-columns", state: true, subscribe: false }) private _hiddenTableColumns?: string[]; - @storage({ key: "hacs-table-columns-order", state: true, subscribe: false }) + @storage({ key: "hacs-dashboard-table-columns-ordering", state: true, subscribe: false }) private _orderTableColumns?: string[]; protected render = (): TemplateResult | void => {