Browse Source

Task/set change detection strategy to OnPush in overview of admin control panel (#7236)

* Set change detection strategy to OnPush

* Update changelog
pull/7222/head^2
David Requeno 1 week ago
committed by GitHub
parent
commit
5dad190238
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 4
      apps/client/src/app/components/admin-overview/admin-overview.component.ts

1
CHANGELOG.md

@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Set the change detection strategy to `OnPush` in the alert dialog component - Set the change detection strategy to `OnPush` in the alert dialog component
- Set the change detection strategy to `OnPush` in the confirmation dialog component - Set the change detection strategy to `OnPush` in the confirmation dialog component
- Set the change detection strategy to `OnPush` in the prompt dialog component - Set the change detection strategy to `OnPush` in the prompt dialog component
- Set the change detection strategy to `OnPush` in the overview of the admin control panel
- Upgraded `stripe` from version `21.0.1` to `22.2.3` - Upgraded `stripe` from version `21.0.1` to `22.2.3`
### Fixed ### Fixed

4
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 { Clipboard, ClipboardModule } from '@angular/cdk/clipboard';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { import {
ChangeDetectionStrategy,
ChangeDetectorRef, ChangeDetectorRef,
Component, Component,
DestroyRef, DestroyRef,
@ -64,6 +65,7 @@ import {
import ms, { StringValue } from 'ms'; import ms, { StringValue } from 'ms';
@Component({ @Component({
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [ imports: [
ClipboardModule, ClipboardModule,
CommonModule, CommonModule,
@ -140,6 +142,8 @@ export class GfAdminOverviewComponent implements OnInit {
permissions.toggleReadOnlyMode permissions.toggleReadOnlyMode
); );
} }
this.changeDetectorRef.markForCheck();
}); });
addIcons({ addIcons({

Loading…
Cancel
Save