Standardize button labels
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<.button variant="solid" size="sm" patch={~p"/online-store-templates/new"}>
|
<.button variant="solid" size="sm" patch={~p"/online-store-templates/new"}>
|
||||||
<.icon name="hero-plus" class="icon" aria-hidden="true" data-slot="icon" />
|
<.icon name="hero-plus" class="icon" aria-hidden="true" data-slot="icon" />
|
||||||
{gettext("New Template")}
|
{gettext("Add")}
|
||||||
</.button>
|
</.button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
patch={~p"/scrobble-rules/new"}
|
patch={~p"/scrobble-rules/new"}
|
||||||
>
|
>
|
||||||
<.icon name="hero-plus" class="icon" aria-hidden="true" data-slot="icon" />
|
<.icon name="hero-plus" class="icon" aria-hidden="true" data-slot="icon" />
|
||||||
{gettext("New Rule")}
|
{gettext("Add")}
|
||||||
</.button>
|
</.button>
|
||||||
<.button
|
<.button
|
||||||
variant="solid"
|
variant="solid"
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
phx-click="apply_all_rules"
|
phx-click="apply_all_rules"
|
||||||
>
|
>
|
||||||
<.icon name="hero-play" class="icon" />
|
<.icon name="hero-play" class="icon" />
|
||||||
{gettext("Apply All")}
|
{gettext("Apply")}
|
||||||
</.button>
|
</.button>
|
||||||
</.button_group>
|
</.button_group>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -588,6 +588,8 @@ msgid "Some records could not be imported: %{summary}"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/collection_live/index.html.heex
|
#: lib/music_library_web/live/collection_live/index.html.heex
|
||||||
|
#: lib/music_library_web/live/online_store_template_live/index.html.heex
|
||||||
|
#: lib/music_library_web/live/scrobble_rules_live/index.html.heex
|
||||||
#: lib/music_library_web/live/wishlist_live/index.html.heex
|
#: lib/music_library_web/live/wishlist_live/index.html.heex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add"
|
msgid "Add"
|
||||||
@@ -1013,11 +1015,6 @@ msgstr ""
|
|||||||
msgid "Match Value"
|
msgid "Match Value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/scrobble_rules_live/index.html.heex
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "New Rule"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/live/scrobble_rules_live/index.ex
|
#: lib/music_library_web/live/scrobble_rules_live/index.ex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "New Scrobble Rule"
|
msgid "New Scrobble Rule"
|
||||||
@@ -1154,11 +1151,6 @@ msgstr ""
|
|||||||
msgid "Dominant Colors"
|
msgid "Dominant Colors"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/scrobble_rules_live/index.html.heex
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Apply All"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/components/record_form.ex
|
#: lib/music_library_web/components/record_form.ex
|
||||||
#: lib/music_library_web/live/scrobbled_tracks_live/index.html.heex
|
#: lib/music_library_web/live/scrobbled_tracks_live/index.html.heex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
@@ -1261,11 +1253,6 @@ msgstr ""
|
|||||||
msgid "Enable template"
|
msgid "Enable template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/online_store_template_live/index.html.heex
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "New Template"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/components/layouts/root.html.heex
|
#: lib/music_library_web/components/layouts/root.html.heex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Data sourced from"
|
msgid "Data sourced from"
|
||||||
@@ -1672,3 +1659,8 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No scrobble rules found"
|
msgid "No scrobble rules found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/scrobble_rules_live/index.html.heex
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr ""
|
||||||
|
|||||||
@@ -588,6 +588,8 @@ msgid "Some records could not be imported: %{summary}"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/collection_live/index.html.heex
|
#: lib/music_library_web/live/collection_live/index.html.heex
|
||||||
|
#: lib/music_library_web/live/online_store_template_live/index.html.heex
|
||||||
|
#: lib/music_library_web/live/scrobble_rules_live/index.html.heex
|
||||||
#: lib/music_library_web/live/wishlist_live/index.html.heex
|
#: lib/music_library_web/live/wishlist_live/index.html.heex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Add"
|
msgid "Add"
|
||||||
@@ -1013,11 +1015,6 @@ msgstr ""
|
|||||||
msgid "Match Value"
|
msgid "Match Value"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/scrobble_rules_live/index.html.heex
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "New Rule"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/live/scrobble_rules_live/index.ex
|
#: lib/music_library_web/live/scrobble_rules_live/index.ex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "New Scrobble Rule"
|
msgid "New Scrobble Rule"
|
||||||
@@ -1154,11 +1151,6 @@ msgstr ""
|
|||||||
msgid "Dominant Colors"
|
msgid "Dominant Colors"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/scrobble_rules_live/index.html.heex
|
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
|
||||||
msgid "Apply All"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/components/record_form.ex
|
#: lib/music_library_web/components/record_form.ex
|
||||||
#: lib/music_library_web/live/scrobbled_tracks_live/index.html.heex
|
#: lib/music_library_web/live/scrobbled_tracks_live/index.html.heex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
@@ -1261,11 +1253,6 @@ msgstr ""
|
|||||||
msgid "Enable template"
|
msgid "Enable template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/online_store_template_live/index.html.heex
|
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
|
||||||
msgid "New Template"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/components/layouts/root.html.heex
|
#: lib/music_library_web/components/layouts/root.html.heex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Data sourced from"
|
msgid "Data sourced from"
|
||||||
@@ -1672,3 +1659,8 @@ msgstr ""
|
|||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "No scrobble rules found"
|
msgid "No scrobble rules found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/scrobble_rules_live/index.html.heex
|
||||||
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
|
msgid "Apply"
|
||||||
|
msgstr ""
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ defmodule MusicLibraryWeb.ScrobbleRulesLiveTest do
|
|||||||
test "saves new scrobble_rule", %{conn: conn} do
|
test "saves new scrobble_rule", %{conn: conn} do
|
||||||
{:ok, index_live, _html} = live(conn, ~p"/scrobble-rules")
|
{:ok, index_live, _html} = live(conn, ~p"/scrobble-rules")
|
||||||
|
|
||||||
assert index_live |> element("a", "New Rule") |> render_click() =~
|
assert index_live |> element("a", "Add") |> render_click() =~
|
||||||
"New Scrobble Rule"
|
"New Scrobble Rule"
|
||||||
|
|
||||||
assert_patch(index_live, ~p"/scrobble-rules/new")
|
assert_patch(index_live, ~p"/scrobble-rules/new")
|
||||||
@@ -140,7 +140,7 @@ defmodule MusicLibraryWeb.ScrobbleRulesLiveTest do
|
|||||||
test "shows validation errors for missing required fields", %{conn: conn} do
|
test "shows validation errors for missing required fields", %{conn: conn} do
|
||||||
{:ok, index_live, _html} = live(conn, ~p"/scrobble-rules")
|
{:ok, index_live, _html} = live(conn, ~p"/scrobble-rules")
|
||||||
|
|
||||||
assert index_live |> element("a", "New Rule") |> render_click()
|
assert index_live |> element("a", "Add") |> render_click()
|
||||||
|
|
||||||
assert index_live
|
assert index_live
|
||||||
|> form("#scrobble_rule-form",
|
|> form("#scrobble_rule-form",
|
||||||
@@ -152,7 +152,7 @@ defmodule MusicLibraryWeb.ScrobbleRulesLiveTest do
|
|||||||
test "shows validation errors for invalid MusicBrainz ID", %{conn: conn} do
|
test "shows validation errors for invalid MusicBrainz ID", %{conn: conn} do
|
||||||
{:ok, index_live, _html} = live(conn, ~p"/scrobble-rules")
|
{:ok, index_live, _html} = live(conn, ~p"/scrobble-rules")
|
||||||
|
|
||||||
assert index_live |> element("a", "New Rule") |> render_click()
|
assert index_live |> element("a", "Add") |> render_click()
|
||||||
|
|
||||||
assert index_live
|
assert index_live
|
||||||
|> form("#scrobble_rule-form",
|
|> form("#scrobble_rule-form",
|
||||||
@@ -168,7 +168,7 @@ defmodule MusicLibraryWeb.ScrobbleRulesLiveTest do
|
|||||||
test "updates form labels based on rule type", %{conn: conn} do
|
test "updates form labels based on rule type", %{conn: conn} do
|
||||||
{:ok, index_live, _html} = live(conn, ~p"/scrobble-rules")
|
{:ok, index_live, _html} = live(conn, ~p"/scrobble-rules")
|
||||||
|
|
||||||
assert index_live |> element("a", "New Rule") |> render_click()
|
assert index_live |> element("a", "Add") |> render_click()
|
||||||
|
|
||||||
# Select album type
|
# Select album type
|
||||||
html =
|
html =
|
||||||
|
|||||||
Reference in New Issue
Block a user