PlaylistPage: fix search input (#39226)
* PlaylistPage: removes search due to no wildcard support * PlaylistPage: adds back search input and wildcard search support * makes banner to appear only when playlist does not exist * Chore: small refactor * Chore: some code refactoring to make it readable * fixes focus leaving input when query is cleared * adds styling to the emptyQueryList banner * extracts emptyQueryListBanner component to a separate file * adds debounce to search * use new theme for styling * Chore: some nit fix * fixes empty list banner showing for a second before the full list is loaded * Fix: removes search when playlist is empty Co-authored-by: Ash <ashharrison90@gmail.com> Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
This commit is contained in:
co-authored by
Ash
Hugo Häggmark
parent
a1d8d6e95e
commit
eb2e1197e9
@@ -133,7 +133,7 @@ func SearchPlaylists(query *models.GetPlaylistsQuery) error {
|
||||
sess := x.Limit(query.Limit)
|
||||
|
||||
if query.Name != "" {
|
||||
sess.Where("name LIKE ?", query.Name)
|
||||
sess.Where("name LIKE ?", "%"+query.Name+"%")
|
||||
}
|
||||
|
||||
sess.Where("org_id = ?", query.OrgId)
|
||||
|
||||
Reference in New Issue
Block a user