From 92779a57c960969e711002a5cef5b4bf3e245e4e Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 24 Sep 2025 14:48:45 +0300 Subject: [PATCH] Reuse saerch form --- .../live/scrobble_live/index.html.heex | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/music_library_web/live/scrobble_live/index.html.heex b/lib/music_library_web/live/scrobble_live/index.html.heex index 5badd602..0f917330 100644 --- a/lib/music_library_web/live/scrobble_live/index.html.heex +++ b/lib/music_library_web/live/scrobble_live/index.html.heex @@ -10,21 +10,7 @@
- <.form for={%{}} as={:search} phx-submit="search" class="space-y-4"> -
- <.input - type="text" - name="query" - value={@search_query} - placeholder="Search for release groups (e.g., artist name, album title)..." - class="flex-1" - phx-debounce="300" - /> - <.button type="submit" disabled={@loading} phx-disable-with={gettext("Searching...")}> - <.icon name="hero-magnifying-glass" class="size-4" />{gettext("Search")} - -
- + <.search_form query={@search_query} /> <%= if @search_results != [] && @selected_release_group == nil do %>