From 77dd020b87fcd4e2788eaeb34930fcbb2db838c2 Mon Sep 17 00:00:00 2001 From: Alex Karpov Date: Mon, 6 Nov 2023 15:32:52 +0200 Subject: [PATCH] NAS-125003: Dashboard is missing Loading State (only blank screen) (#9162) --- .../dashboard/components/dashboard/dashboard.component.html | 2 +- .../dashboard/components/dashboard/dashboard.component.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/pages/dashboard/components/dashboard/dashboard.component.html b/src/app/pages/dashboard/components/dashboard/dashboard.component.html index 06a4cc2a88e..4da64eb9a07 100644 --- a/src/app/pages/dashboard/components/dashboard/dashboard.component.html +++ b/src/app/pages/dashboard/components/dashboard/dashboard.component.html @@ -61,7 +61,7 @@ > -
+
diff --git a/src/app/pages/dashboard/components/dashboard/dashboard.component.ts b/src/app/pages/dashboard/components/dashboard/dashboard.component.ts index 5d7603a6653..e09267302cb 100644 --- a/src/app/pages/dashboard/components/dashboard/dashboard.component.ts +++ b/src/app/pages/dashboard/components/dashboard/dashboard.component.ts @@ -76,7 +76,6 @@ export class DashboardComponent implements AfterViewInit, OnDestroy { dashState: DashConfigItem[]; // Saved State previousState: DashConfigItem[]; activeMobileWidget: DashConfigItem[] = []; - availableWidgets: DashConfigItem[]; renderedWidgets: DashConfigItem[]; readonly ScreenType = ScreenType; @@ -158,7 +157,6 @@ export class DashboardComponent implements AfterViewInit, OnDestroy { this.volumeData = state.volumesData; this.systemInformation = state.sysInfoWithFeatures; this.isHaLicensed = state.isHaLicensed; - this.availableWidgets = state.availableWidgets; this.setDashState(state.dashboardState); }), untilDestroyed(this), @@ -270,8 +268,6 @@ export class DashboardComponent implements AfterViewInit, OnDestroy { conf.push({ name: WidgetName.Memory, rendered: true, id: conf.length.toString() }); conf.push({ name: WidgetName.Storage, rendered: true, id: conf.length.toString() }); conf.push({ name: WidgetName.Network, rendered: true, id: conf.length.toString() }); - - this.availableWidgets = conf; } showConfigForm(): void {