Rename Import -> Add, and avoid surfacing MusicBrainz where unneeded
This commit is contained in:
@@ -50,10 +50,10 @@ defmodule MusicLibraryWeb.BarcodeScannerComponent do
|
||||
<div class="mt-4 flex justify-center">
|
||||
<.button
|
||||
disabled={length(@scan_results) == 0}
|
||||
phx-disable-with={gettext("Importing...")}
|
||||
phx-disable-with={gettext("Adding...")}
|
||||
phx-click={JS.push("import_releases", target: "#barcode-scanner")}
|
||||
>
|
||||
{gettext("Import releases")}
|
||||
{gettext("Add releases")}
|
||||
</.button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -24,8 +24,8 @@ defmodule MusicLibraryWeb.ImportComponent do
|
||||
name={:mb_query}
|
||||
field={@form[:mb_query]}
|
||||
type="text"
|
||||
label={gettext("Search for a record on MusicBrainz")}
|
||||
prompt={gettext("Search for records")}
|
||||
label={gettext("Search for a record")}
|
||||
prompt={gettext("Search for a record")}
|
||||
phx-debounce="500"
|
||||
autocorrect="off"
|
||||
autocapitalize="none"
|
||||
|
||||
@@ -41,7 +41,7 @@ defmodule MusicLibraryWeb.CollectionLive.Index do
|
||||
end
|
||||
|
||||
socket
|
||||
|> assign(:page_title, gettext("Import from MusicBrainz · Collection"))
|
||||
|> assign(:page_title, gettext("Add new Record · Collection"))
|
||||
|> assign(:record, nil)
|
||||
end
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
patch={~p"/collection/import"}
|
||||
>
|
||||
<.icon name="hero-plus" class="h-4 w-4 mr-2" aria-hidden="true" data-slot="icon" />
|
||||
{gettext("Import")}
|
||||
{gettext("Add")}
|
||||
</.link>
|
||||
<.link
|
||||
class={[
|
||||
|
||||
@@ -46,7 +46,7 @@ defmodule MusicLibraryWeb.WishlistLive.Index do
|
||||
end
|
||||
|
||||
socket
|
||||
|> assign(:page_title, gettext("Import from MusicBrainz · Wishlist"))
|
||||
|> assign(:page_title, gettext("Add new Record · Wishlist"))
|
||||
|> assign(:record, nil)
|
||||
end
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
patch={~p"/wishlist/import"}
|
||||
>
|
||||
<.icon name="hero-plus" class="h-4 w-4 mr-2" aria-hidden="true" data-slot="icon" />
|
||||
{gettext("Import")}
|
||||
{gettext("Add")}
|
||||
</.link>
|
||||
</div>
|
||||
</header>
|
||||
@@ -65,7 +65,7 @@
|
||||
record={@record}
|
||||
patch={back_path(@record_list_params)}
|
||||
initial_query=""
|
||||
icon_name="hero-star"
|
||||
icon_name="hero-plus"
|
||||
/>
|
||||
</.modal>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user