Use verified routes instead of plain strings
This commit is contained in:
@@ -92,9 +92,8 @@ defmodule MusicLibraryWeb.RecordLive.Index do
|
|||||||
@default_records_list_params
|
@default_records_list_params
|
||||||
|> Map.put(:query, query)
|
|> Map.put(:query, query)
|
||||||
|> Map.take([:query, :page, :page_size])
|
|> Map.take([:query, :page, :page_size])
|
||||||
|> URI.encode_query()
|
|
||||||
|
|
||||||
{:noreply, push_patch(socket, to: ~s"/records?#{qs}")}
|
{:noreply, push_patch(socket, to: ~p"/records?#{qs}")}
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_event("import", %{"id" => musicbrainz_id, "format" => format}, socket) do
|
def handle_event("import", %{"id" => musicbrainz_id, "format" => format}, socket) do
|
||||||
|
|||||||
@@ -94,9 +94,8 @@ defmodule MusicLibraryWeb.WishlistLive.Index do
|
|||||||
@default_records_list_params
|
@default_records_list_params
|
||||||
|> Map.put(:query, query)
|
|> Map.put(:query, query)
|
||||||
|> Map.take([:query, :page, :page_size])
|
|> Map.take([:query, :page, :page_size])
|
||||||
|> URI.encode_query()
|
|
||||||
|
|
||||||
{:noreply, push_patch(socket, to: ~s"/wishlist?#{qs}")}
|
{:noreply, push_patch(socket, to: ~p"/wishlist?#{qs}")}
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_event("import", %{"id" => musicbrainz_id, "format" => format}, socket) do
|
def handle_event("import", %{"id" => musicbrainz_id, "format" => format}, socket) do
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ msgstr ""
|
|||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/record_live/index.ex:119
|
#: lib/music_library_web/live/record_live/index.ex:118
|
||||||
#: lib/music_library_web/live/wishlist_live/index.ex:116
|
#: lib/music_library_web/live/wishlist_live/index.ex:115
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Error importing record"
|
msgid "Error importing record"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -206,14 +206,14 @@ msgstr ""
|
|||||||
msgid "Purchased on"
|
msgid "Purchased on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/record_live/index.ex:110
|
#: lib/music_library_web/live/record_live/index.ex:109
|
||||||
#: lib/music_library_web/live/wishlist_live/index.ex:107
|
#: lib/music_library_web/live/wishlist_live/index.ex:106
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Record imported successfully"
|
msgid "Record imported successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/record_live/form_component.ex:117
|
#: lib/music_library_web/live/record_live/form_component.ex:117
|
||||||
#: lib/music_library_web/live/wishlist_live/index.ex:129
|
#: lib/music_library_web/live/wishlist_live/index.ex:128
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Record updated successfully"
|
msgid "Record updated successfully"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
Reference in New Issue
Block a user