Deselect book on route change
This commit is contained in:
@@ -41,21 +41,7 @@ export enum EntityType {
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
templateUrl: './book-browser.component.html',
|
templateUrl: './book-browser.component.html',
|
||||||
styleUrls: ['./book-browser.component.scss'],
|
styleUrls: ['./book-browser.component.scss'],
|
||||||
imports: [
|
imports: [Button, NgIf, VirtualScrollerModule, BookCardComponent, AsyncPipe, ProgressSpinner, Select, RadioButton, Menu, NgForOf, InputText, FormsModule, BookTableComponent],
|
||||||
Button,
|
|
||||||
NgIf,
|
|
||||||
VirtualScrollerModule,
|
|
||||||
BookCardComponent,
|
|
||||||
AsyncPipe,
|
|
||||||
ProgressSpinner,
|
|
||||||
Select,
|
|
||||||
RadioButton,
|
|
||||||
Menu,
|
|
||||||
NgForOf,
|
|
||||||
InputText,
|
|
||||||
FormsModule,
|
|
||||||
BookTableComponent
|
|
||||||
],
|
|
||||||
animations: [
|
animations: [
|
||||||
trigger('slideInOut', [
|
trigger('slideInOut', [
|
||||||
state('void', style({
|
state('void', style({
|
||||||
@@ -140,6 +126,7 @@ export class BookBrowserComponent implements OnInit {
|
|||||||
this.activatedRoute.paramMap.subscribe(() => {
|
this.activatedRoute.paramMap.subscribe(() => {
|
||||||
this.bookTitle$.next('');
|
this.bookTitle$.next('');
|
||||||
this.bookTitle = '';
|
this.bookTitle = '';
|
||||||
|
this.deselectAllBooks();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user