Skip to content

Commit

Permalink
NAS-125003: Dashboard is missing Loading State (only blank screen) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKarpov98 authored Nov 6, 2023
1 parent bf3ee7a commit 77dd020
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
>
<!-- LOADING WIDGETS -->
<ng-container *ngIf="!isLoaded && screenType === ScreenType.Desktop">
<div *ngFor="let _ of availableWidgets">
<div *ngFor="let _ of [1,2,3,4,5,6]">
<div class="widget placeholder">
<div class="card-container front">
<mat-card [class.loading]="true"></mat-card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 77dd020

Please sign in to comment.