Add support for series name in search bar

This commit is contained in:
aditya.chandel
2025-05-27 08:37:29 -07:00
committed by Aditya Chandel
parent e0187d0ede
commit 74c2f11531
3 changed files with 36 additions and 14 deletions
@@ -61,19 +61,22 @@
<p-fluid>
<div class="relative">
<i class="pi pi-search search-icon"></i>
<input
type="text"
pInputText
placeholder="Search title or author..."
placeholder="Title, Series or Author..."
[(ngModel)]="bookTitle"
(ngModelChange)="onBookTitleChange($event)"/>
(ngModelChange)="onSearchTermChange($event)"
class="search-input"
/>
<p-button
*ngIf="bookTitle"
icon="pi pi-times"
[text]="true"
size="small"
[rounded]="true"
class="absolute right-2 top-1/2 transform -translate-y-1/2"
class="absolute right-2 top-1/2 -translate-y-1/2"
(click)="clearSearch()">
</p-button>
</div>