From 0e842c4e136987a52da239f6931445262492c3a0 Mon Sep 17 00:00:00 2001 From: David Requeno Date: Sat, 4 Jul 2026 21:16:44 -0600 Subject: [PATCH] Task/migrate admin overview component to OnPush --- .../components/admin-overview/admin-overview.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/client/src/app/components/admin-overview/admin-overview.component.ts b/apps/client/src/app/components/admin-overview/admin-overview.component.ts index 3b8fdc38c..6c68802b2 100644 --- a/apps/client/src/app/components/admin-overview/admin-overview.component.ts +++ b/apps/client/src/app/components/admin-overview/admin-overview.component.ts @@ -27,6 +27,7 @@ import { GfValueComponent } from '@ghostfolio/ui/value'; import { Clipboard, ClipboardModule } from '@angular/cdk/clipboard'; import { CommonModule } from '@angular/common'; import { + ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, @@ -82,7 +83,8 @@ import ms, { StringValue } from 'ms'; ], selector: 'gf-admin-overview', styleUrls: ['./admin-overview.scss'], - templateUrl: './admin-overview.html' + templateUrl: './admin-overview.html', + changeDetection: ChangeDetectionStrategy.OnPush }) export class GfAdminOverviewComponent implements OnInit { protected activitiesCount: number; @@ -140,6 +142,8 @@ export class GfAdminOverviewComponent implements OnInit { permissions.toggleReadOnlyMode ); } + + this.changeDetectorRef.markForCheck(); }); addIcons({