diff --git a/booklore-ui/src/app/features/book/components/book-browser/sorting/multi-sort-popover/multi-sort-popover.component.ts b/booklore-ui/src/app/features/book/components/book-browser/sorting/multi-sort-popover/multi-sort-popover.component.ts index 3e96a0395..f2ea779e6 100644 --- a/booklore-ui/src/app/features/book/components/book-browser/sorting/multi-sort-popover/multi-sort-popover.component.ts +++ b/booklore-ui/src/app/features/book/components/book-browser/sorting/multi-sort-popover/multi-sort-popover.component.ts @@ -1,4 +1,4 @@ -import {Component, EventEmitter, inject, Input, Output} from '@angular/core'; +import {ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output} from '@angular/core'; import {SortDirection, SortOption} from '../../../../model/sort.model'; import {CdkDrag, CdkDragDrop, CdkDragHandle, CdkDropList, moveItemInArray} from '@angular/cdk/drag-drop'; import {Select} from 'primeng/select'; @@ -10,6 +10,7 @@ import {TranslocoDirective, TranslocoService} from '@jsverse/transloco'; @Component({ selector: 'app-multi-sort-popover', standalone: true, + changeDetection: ChangeDetectionStrategy.OnPush, imports: [ CdkDropList, CdkDrag, diff --git a/booklore-ui/src/app/features/book/components/book-card-lite/book-card-lite-component.ts b/booklore-ui/src/app/features/book/components/book-card-lite/book-card-lite-component.ts index 3505c0e3d..ec0bb8655 100644 --- a/booklore-ui/src/app/features/book/components/book-card-lite/book-card-lite-component.ts +++ b/booklore-ui/src/app/features/book/components/book-card-lite/book-card-lite-component.ts @@ -1,4 +1,4 @@ -import {Component, computed, inject, Input} from '@angular/core'; +import {ChangeDetectionStrategy, Component, computed, inject, Input} from '@angular/core'; import {Book} from '../../model/book.model'; import {UrlHelperService} from '../../../../shared/service/url-helper.service'; import {Button} from 'primeng/button'; @@ -10,6 +10,7 @@ import {TooltipModule} from 'primeng/tooltip'; @Component({ selector: 'app-book-card-lite-component', + changeDetection: ChangeDetectionStrategy.OnPush, imports: [ Button, NgClass, diff --git a/booklore-ui/src/app/features/dashboard/components/dashboard-scroller/dashboard-scroller.component.ts b/booklore-ui/src/app/features/dashboard/components/dashboard-scroller/dashboard-scroller.component.ts index b39186e24..0e7908b6f 100644 --- a/booklore-ui/src/app/features/dashboard/components/dashboard-scroller/dashboard-scroller.component.ts +++ b/booklore-ui/src/app/features/dashboard/components/dashboard-scroller/dashboard-scroller.component.ts @@ -1,4 +1,4 @@ -import {Component, ElementRef, Input, ViewChild, inject} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, inject} from '@angular/core'; import {BookCardComponent} from '../../../book/components/book-browser/book-card/book-card.component'; import {InfiniteScrollDirective} from 'ngx-infinite-scroll'; import {NgClass} from '@angular/common'; @@ -11,6 +11,7 @@ import {TranslocoDirective, TranslocoPipe} from '@jsverse/transloco'; @Component({ selector: 'app-dashboard-scroller', + changeDetection: ChangeDetectionStrategy.OnPush, templateUrl: './dashboard-scroller.component.html', styleUrls: ['./dashboard-scroller.component.scss'], imports: [ diff --git a/booklore-ui/src/app/features/readers/ebook-reader/shared/icon.component.ts b/booklore-ui/src/app/features/readers/ebook-reader/shared/icon.component.ts index 0c9465fef..6f0f7ecb9 100644 --- a/booklore-ui/src/app/features/readers/ebook-reader/shared/icon.component.ts +++ b/booklore-ui/src/app/features/readers/ebook-reader/shared/icon.component.ts @@ -1,4 +1,4 @@ -import {Component, Input} from '@angular/core'; +import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; import {CommonModule} from '@angular/common'; export type ReaderIconName = @@ -205,6 +205,7 @@ const ICONS: Record = { @Component({ selector: 'app-reader-icon', standalone: true, + changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule], template: `