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({