Deselect book on route change

This commit is contained in:
aditya.chandel
2025-01-13 11:16:42 -07:00
parent 97bd7b7165
commit 2cbf49a5e6
@@ -41,21 +41,7 @@ export enum EntityType {
standalone: true,
templateUrl: './book-browser.component.html',
styleUrls: ['./book-browser.component.scss'],
imports: [
Button,
NgIf,
VirtualScrollerModule,
BookCardComponent,
AsyncPipe,
ProgressSpinner,
Select,
RadioButton,
Menu,
NgForOf,
InputText,
FormsModule,
BookTableComponent
],
imports: [Button, NgIf, VirtualScrollerModule, BookCardComponent, AsyncPipe, ProgressSpinner, Select, RadioButton, Menu, NgForOf, InputText, FormsModule, BookTableComponent],
animations: [
trigger('slideInOut', [
state('void', style({
@@ -140,6 +126,7 @@ export class BookBrowserComponent implements OnInit {
this.activatedRoute.paramMap.subscribe(() => {
this.bookTitle$.next('');
this.bookTitle = '';
this.deselectAllBooks();
});
}