diff --git a/lib/music_library_web/live/record_live/barcode_scanner_component.ex b/lib/music_library_web/live/record_live/barcode_scanner_component.ex index d5cae29b..23c7e90b 100644 --- a/lib/music_library_web/live/record_live/barcode_scanner_component.ex +++ b/lib/music_library_web/live/record_live/barcode_scanner_component.ex @@ -37,7 +37,7 @@ defmodule MusicLibraryWeb.RecordLive.BarcodeScannerComponent do {gettext("Scan one or more barcodes")} -
+
+ +
0} class="mt-4 flex justify-center"> + <.button phx-click={JS.push("import_releases", target: "#barcode-scanner")}> + {gettext("Import releases")} + +
""" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 58c3fbb9..aed89440 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -635,7 +635,12 @@ msgstr "" msgid "Scan one or more barcodes" msgstr "" -#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:66 +#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:65 #, elixir-autogen, elixir-format msgid "Open camera" msgstr "" + +#: lib/music_library_web/live/record_live/barcode_scanner_component.ex:72 +#, elixir-autogen, elixir-format +msgid "Import releases" +msgstr ""