Skip to content

Commit

Permalink
NAS-128473: Storage tab of dashboard on mobile fails to load
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKarpov98 committed Apr 25, 2024
1 parent 63ac5d8 commit 407fe54
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component,
ChangeDetectionStrategy, ChangeDetectorRef, Component,
OnInit,
} from '@angular/core';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
import { TranslateService } from '@ngx-translate/core';
Expand Down Expand Up @@ -56,7 +57,7 @@ type PoolInfoMap = Record<string, PoolInfo>;
],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class WidgetStorageComponent extends WidgetComponent implements AfterViewInit {
export class WidgetStorageComponent extends WidgetComponent implements OnInit {
readonly requiredRoles = [Role.FullAdmin];

protected pools: Pool[];
Expand Down Expand Up @@ -112,7 +113,7 @@ export class WidgetStorageComponent extends WidgetComponent implements AfterView
super(translate);
}

ngAfterViewInit(): void {
ngOnInit(): void {
this.dashboardStorageStore$.isLoading$.pipe(
filter((isLoading) => !isLoading),
switchMap(() => this.dashboardStorageStore$.pools$.pipe(
Expand Down

0 comments on commit 407fe54

Please sign in to comment.