From 5ffa627beb8dd2ec53da87f94184575a1bb31b0c Mon Sep 17 00:00:00 2001 From: shibao Date: Sat, 19 Nov 2022 14:05:29 -0500 Subject: [PATCH] improve table route navigation --- lib/cannery_web/live/ammo_type_live/show.ex | 27 ++++++++++++--------- lib/cannery_web/live/container_live/show.ex | 10 +++++--- priv/gettext/de/LC_MESSAGES/default.po | 6 ++--- priv/gettext/de/LC_MESSAGES/errors.po | 2 +- priv/gettext/de/LC_MESSAGES/prompts.po | 6 ++--- priv/gettext/default.pot | 6 ++--- priv/gettext/en/LC_MESSAGES/default.po | 6 ++--- priv/gettext/en/LC_MESSAGES/errors.po | 2 +- priv/gettext/en/LC_MESSAGES/prompts.po | 6 ++--- priv/gettext/errors.pot | 2 +- priv/gettext/es/LC_MESSAGES/default.po | 6 ++--- priv/gettext/es/LC_MESSAGES/errors.po | 2 +- priv/gettext/es/LC_MESSAGES/prompts.po | 6 ++--- priv/gettext/fr/LC_MESSAGES/default.po | 6 ++--- priv/gettext/fr/LC_MESSAGES/errors.po | 2 +- priv/gettext/fr/LC_MESSAGES/prompts.po | 6 ++--- priv/gettext/ga/LC_MESSAGES/default.po | 6 ++--- priv/gettext/ga/LC_MESSAGES/errors.po | 2 +- priv/gettext/ga/LC_MESSAGES/prompts.po | 6 ++--- priv/gettext/prompts.pot | 6 ++--- 20 files changed, 63 insertions(+), 58 deletions(-) diff --git a/lib/cannery_web/live/ammo_type_live/show.ex b/lib/cannery_web/live/ammo_type_live/show.ex index 1cbdd5f4..33e97f53 100644 --- a/lib/cannery_web/live/ammo_type_live/show.ex +++ b/lib/cannery_web/live/ammo_type_live/show.ex @@ -5,7 +5,7 @@ defmodule CanneryWeb.AmmoTypeLive.Show do use CanneryWeb, :live_view import CanneryWeb.Components.AmmoGroupCard - alias Cannery.Ammo + alias Cannery.{Ammo, Ammo.AmmoType} alias CanneryWeb.Endpoint @fields_list [ @@ -31,17 +31,16 @@ defmodule CanneryWeb.AmmoTypeLive.Show do ] @impl true - def mount(_params, _session, socket), - do: {:ok, socket |> assign(show_used: false, view_table: false)} + def mount(_params, _session, %{assigns: %{live_action: live_action}} = socket), + do: {:ok, socket |> assign(show_used: false, view_table: live_action == :table)} @impl true - def handle_params( - %{"id" => id}, - _params, - %{assigns: %{current_user: current_user, live_action: live_action}} = socket - ) do - ammo_type = Ammo.get_ammo_type!(id, current_user) - socket = socket |> assign(view_table: live_action == :table) |> display_ammo_type(ammo_type) + def handle_params(%{"id" => id}, _params, %{assigns: %{live_action: live_action}} = socket) do + socket = + socket + |> assign(view_table: live_action == :table) + |> display_ammo_type(id) + {:noreply, socket} end @@ -75,13 +74,13 @@ defmodule CanneryWeb.AmmoTypeLive.Show do do: Routes.ammo_type_show_path(Endpoint, :show, ammo_type), else: Routes.ammo_type_show_path(Endpoint, :table, ammo_type) - {:noreply, socket |> assign(view_table: !view_table) |> push_patch(to: new_path)} + {:noreply, socket |> push_patch(to: new_path)} end defp display_ammo_type( %{assigns: %{live_action: live_action, current_user: current_user, show_used: show_used}} = socket, - ammo_type + %AmmoType{} = ammo_type ) do fields_to_display = @fields_list @@ -106,6 +105,10 @@ defmodule CanneryWeb.AmmoTypeLive.Show do ) end + defp display_ammo_type(%{assigns: %{current_user: current_user}} = socket, ammo_type_id) do + socket |> display_ammo_type(Ammo.get_ammo_type!(ammo_type_id, current_user)) + end + defp display_ammo_type(%{assigns: %{ammo_type: ammo_type}} = socket) do socket |> display_ammo_type(ammo_type) end diff --git a/lib/cannery_web/live/container_live/show.ex b/lib/cannery_web/live/container_live/show.ex index 4241d30f..8f94eedf 100644 --- a/lib/cannery_web/live/container_live/show.ex +++ b/lib/cannery_web/live/container_live/show.ex @@ -11,8 +11,8 @@ defmodule CanneryWeb.ContainerLive.Show do alias Phoenix.LiveView.Socket @impl true - def mount(_params, _session, socket), - do: {:ok, socket |> assign(show_used: false, view_table: false)} + def mount(_params, _session, %{assigns: %{live_action: live_action}} = socket), + do: {:ok, socket |> assign(show_used: false, view_table: live_action == :table)} @impl true def handle_params( @@ -21,7 +21,9 @@ defmodule CanneryWeb.ContainerLive.Show do %{assigns: %{current_user: current_user, live_action: live_action}} = socket ) do socket = - socket |> assign(view_table: live_action == :table) |> render_container(id, current_user) + socket + |> assign(view_table: live_action == :table) + |> render_container(id, current_user) {:noreply, socket} end @@ -102,7 +104,7 @@ defmodule CanneryWeb.ContainerLive.Show do do: Routes.container_show_path(Endpoint, :show, container), else: Routes.container_show_path(Endpoint, :table, container) - {:noreply, socket |> assign(view_table: !view_table) |> push_patch(to: new_path)} + {:noreply, socket |> push_patch(to: new_path)} end @spec render_container(Socket.t(), Container.id(), User.t()) :: Socket.t() diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index 320bd565..7efd9bfb 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -663,13 +663,13 @@ msgid "Loading..." msgstr "Lädt..." #: lib/cannery_web/live/container_live/index.ex:27 -#: lib/cannery_web/live/container_live/show.ex:124 +#: lib/cannery_web/live/container_live/show.ex:126 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "%{name} bearbeiten" #: lib/cannery_web/live/container_live/index.ex:65 -#: lib/cannery_web/live/container_live/show.ex:125 +#: lib/cannery_web/live/container_live/show.ex:127 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "Editiere %{name} Tags" @@ -1077,7 +1077,7 @@ msgstr "UPC" msgid "Average CPR" msgstr "" -#: lib/cannery_web/live/ammo_type_live/show.ex:117 +#: lib/cannery_web/live/ammo_type_live/show.ex:120 #, elixir-autogen, elixir-format, fuzzy msgid "Edit %{ammo_type_name}" msgstr "%{name} bearbeiten" diff --git a/priv/gettext/de/LC_MESSAGES/errors.po b/priv/gettext/de/LC_MESSAGES/errors.po index b0ff5c07..e6687bc2 100644 --- a/priv/gettext/de/LC_MESSAGES/errors.po +++ b/priv/gettext/de/LC_MESSAGES/errors.po @@ -29,7 +29,7 @@ msgid "Container must be empty before deleting" msgstr "Behälter muss vor dem Löschen leer sein" #: lib/cannery_web/live/container_live/index.ex:88 -#: lib/cannery_web/live/container_live/show.ex:75 +#: lib/cannery_web/live/container_live/show.ex:77 #, elixir-autogen, elixir-format msgid "Could not delete %{name}: %{error}" msgstr "Konnte %{name} nicht löschen: %{error}" diff --git a/priv/gettext/de/LC_MESSAGES/prompts.po b/priv/gettext/de/LC_MESSAGES/prompts.po index f591f50b..6398d8f5 100644 --- a/priv/gettext/de/LC_MESSAGES/prompts.po +++ b/priv/gettext/de/LC_MESSAGES/prompts.po @@ -32,7 +32,7 @@ msgid "%{name} created successfully" msgstr "%{name} erfolgreich erstellt" #: lib/cannery_web/live/ammo_type_live/index.ex:47 -#: lib/cannery_web/live/ammo_type_live/show.ex:56 +#: lib/cannery_web/live/ammo_type_live/show.ex:55 #: lib/cannery_web/live/invite_live/index.ex:53 #: lib/cannery_web/live/invite_live/index.ex:133 #: lib/cannery_web/live/tag_live/index.ex:38 @@ -51,7 +51,7 @@ msgid "%{name} enabled succesfully" msgstr "%{name} erfolgreich aktiviert" #: lib/cannery_web/live/container_live/index.ex:81 -#: lib/cannery_web/live/container_live/show.ex:65 +#: lib/cannery_web/live/container_live/show.ex:67 #, elixir-autogen, elixir-format msgid "%{name} has been deleted" msgstr "%{name} wurde gelöscht" @@ -193,7 +193,7 @@ msgstr "" msgid "%{name} added successfully" msgstr "%{name} erfolgreich hinzugefügt" -#: lib/cannery_web/live/container_live/show.ex:41 +#: lib/cannery_web/live/container_live/show.ex:43 #, elixir-autogen, elixir-format msgid "%{tag_name} has been removed from %{container_name}" msgstr "%{tag_name} wurde von %{container_name} entfernt" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index af3596c5..6507f5a8 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -646,13 +646,13 @@ msgid "Loading..." msgstr "" #: lib/cannery_web/live/container_live/index.ex:27 -#: lib/cannery_web/live/container_live/show.ex:124 +#: lib/cannery_web/live/container_live/show.ex:126 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "" #: lib/cannery_web/live/container_live/index.ex:65 -#: lib/cannery_web/live/container_live/show.ex:125 +#: lib/cannery_web/live/container_live/show.ex:127 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "" @@ -1060,7 +1060,7 @@ msgstr "" msgid "Average CPR" msgstr "" -#: lib/cannery_web/live/ammo_type_live/show.ex:117 +#: lib/cannery_web/live/ammo_type_live/show.ex:120 #, elixir-autogen, elixir-format msgid "Edit %{ammo_type_name}" msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index e99fca39..1b7b4646 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -647,13 +647,13 @@ msgid "Loading..." msgstr "" #: lib/cannery_web/live/container_live/index.ex:27 -#: lib/cannery_web/live/container_live/show.ex:124 +#: lib/cannery_web/live/container_live/show.ex:126 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "" #: lib/cannery_web/live/container_live/index.ex:65 -#: lib/cannery_web/live/container_live/show.ex:125 +#: lib/cannery_web/live/container_live/show.ex:127 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "" @@ -1061,7 +1061,7 @@ msgstr "" msgid "Average CPR" msgstr "" -#: lib/cannery_web/live/ammo_type_live/show.ex:117 +#: lib/cannery_web/live/ammo_type_live/show.ex:120 #, elixir-autogen, elixir-format, fuzzy msgid "Edit %{ammo_type_name}" msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/errors.po b/priv/gettext/en/LC_MESSAGES/errors.po index e6d4fb36..dfcfa38f 100644 --- a/priv/gettext/en/LC_MESSAGES/errors.po +++ b/priv/gettext/en/LC_MESSAGES/errors.po @@ -16,7 +16,7 @@ msgid "Container must be empty before deleting" msgstr "" #: lib/cannery_web/live/container_live/index.ex:88 -#: lib/cannery_web/live/container_live/show.ex:75 +#: lib/cannery_web/live/container_live/show.ex:77 #, elixir-autogen, elixir-format msgid "Could not delete %{name}: %{error}" msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/prompts.po b/priv/gettext/en/LC_MESSAGES/prompts.po index 8e453f67..f90409b4 100644 --- a/priv/gettext/en/LC_MESSAGES/prompts.po +++ b/priv/gettext/en/LC_MESSAGES/prompts.po @@ -20,7 +20,7 @@ msgid "%{name} created successfully" msgstr "" #: lib/cannery_web/live/ammo_type_live/index.ex:47 -#: lib/cannery_web/live/ammo_type_live/show.ex:56 +#: lib/cannery_web/live/ammo_type_live/show.ex:55 #: lib/cannery_web/live/invite_live/index.ex:53 #: lib/cannery_web/live/invite_live/index.ex:133 #: lib/cannery_web/live/tag_live/index.ex:38 @@ -39,7 +39,7 @@ msgid "%{name} enabled succesfully" msgstr "" #: lib/cannery_web/live/container_live/index.ex:81 -#: lib/cannery_web/live/container_live/show.ex:65 +#: lib/cannery_web/live/container_live/show.ex:67 #, elixir-autogen, elixir-format msgid "%{name} has been deleted" msgstr "" @@ -173,7 +173,7 @@ msgstr "" msgid "%{name} added successfully" msgstr "" -#: lib/cannery_web/live/container_live/show.ex:41 +#: lib/cannery_web/live/container_live/show.ex:43 #, elixir-autogen, elixir-format msgid "%{tag_name} has been removed from %{container_name}" msgstr "" diff --git a/priv/gettext/errors.pot b/priv/gettext/errors.pot index b0ea1c8f..f9eced11 100644 --- a/priv/gettext/errors.pot +++ b/priv/gettext/errors.pot @@ -16,7 +16,7 @@ msgid "Container must be empty before deleting" msgstr "" #: lib/cannery_web/live/container_live/index.ex:88 -#: lib/cannery_web/live/container_live/show.ex:75 +#: lib/cannery_web/live/container_live/show.ex:77 #, elixir-autogen, elixir-format msgid "Could not delete %{name}: %{error}" msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 0326c73f..91b8051c 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -661,13 +661,13 @@ msgid "Loading..." msgstr "" #: lib/cannery_web/live/container_live/index.ex:27 -#: lib/cannery_web/live/container_live/show.ex:124 +#: lib/cannery_web/live/container_live/show.ex:126 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "" #: lib/cannery_web/live/container_live/index.ex:65 -#: lib/cannery_web/live/container_live/show.ex:125 +#: lib/cannery_web/live/container_live/show.ex:127 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "" @@ -1075,7 +1075,7 @@ msgstr "" msgid "Average CPR" msgstr "" -#: lib/cannery_web/live/ammo_type_live/show.ex:117 +#: lib/cannery_web/live/ammo_type_live/show.ex:120 #, elixir-autogen, elixir-format, fuzzy msgid "Edit %{ammo_type_name}" msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/errors.po b/priv/gettext/es/LC_MESSAGES/errors.po index 8e67bb4b..27872009 100644 --- a/priv/gettext/es/LC_MESSAGES/errors.po +++ b/priv/gettext/es/LC_MESSAGES/errors.po @@ -29,7 +29,7 @@ msgid "Container must be empty before deleting" msgstr "El contenedor debe estar vacío antes de ser borrado" #: lib/cannery_web/live/container_live/index.ex:88 -#: lib/cannery_web/live/container_live/show.ex:75 +#: lib/cannery_web/live/container_live/show.ex:77 #, elixir-autogen, elixir-format msgid "Could not delete %{name}: %{error}" msgstr "No se pudo eliminar %{name}: %{error}" diff --git a/priv/gettext/es/LC_MESSAGES/prompts.po b/priv/gettext/es/LC_MESSAGES/prompts.po index f52290e3..1846e4a4 100644 --- a/priv/gettext/es/LC_MESSAGES/prompts.po +++ b/priv/gettext/es/LC_MESSAGES/prompts.po @@ -32,7 +32,7 @@ msgid "%{name} created successfully" msgstr "%{name} creado exitosamente" #: lib/cannery_web/live/ammo_type_live/index.ex:47 -#: lib/cannery_web/live/ammo_type_live/show.ex:56 +#: lib/cannery_web/live/ammo_type_live/show.ex:55 #: lib/cannery_web/live/invite_live/index.ex:53 #: lib/cannery_web/live/invite_live/index.ex:133 #: lib/cannery_web/live/tag_live/index.ex:38 @@ -51,7 +51,7 @@ msgid "%{name} enabled succesfully" msgstr "%{name} activado exitosamente" #: lib/cannery_web/live/container_live/index.ex:81 -#: lib/cannery_web/live/container_live/show.ex:65 +#: lib/cannery_web/live/container_live/show.ex:67 #, elixir-autogen, elixir-format msgid "%{name} has been deleted" msgstr "%{name} ha sido borrado" @@ -192,7 +192,7 @@ msgstr "" msgid "%{name} added successfully" msgstr "%{name} añadido exitosamente" -#: lib/cannery_web/live/container_live/show.ex:41 +#: lib/cannery_web/live/container_live/show.ex:43 #, elixir-autogen, elixir-format msgid "%{tag_name} has been removed from %{container_name}" msgstr "se ha removido %{tag_name} de %{container_name}" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index b4139b00..24a5167a 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -665,13 +665,13 @@ msgid "Loading..." msgstr "Chargement en cours…" #: lib/cannery_web/live/container_live/index.ex:27 -#: lib/cannery_web/live/container_live/show.ex:124 +#: lib/cannery_web/live/container_live/show.ex:126 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "Éditer %{name}" #: lib/cannery_web/live/container_live/index.ex:65 -#: lib/cannery_web/live/container_live/show.ex:125 +#: lib/cannery_web/live/container_live/show.ex:127 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "Éditer les tags de %{name}" @@ -1080,7 +1080,7 @@ msgstr "UPC" msgid "Average CPR" msgstr "" -#: lib/cannery_web/live/ammo_type_live/show.ex:117 +#: lib/cannery_web/live/ammo_type_live/show.ex:120 #, elixir-autogen, elixir-format, fuzzy msgid "Edit %{ammo_type_name}" msgstr "Éditer %{name}" diff --git a/priv/gettext/fr/LC_MESSAGES/errors.po b/priv/gettext/fr/LC_MESSAGES/errors.po index d2239ef9..30b3ba1e 100644 --- a/priv/gettext/fr/LC_MESSAGES/errors.po +++ b/priv/gettext/fr/LC_MESSAGES/errors.po @@ -29,7 +29,7 @@ msgid "Container must be empty before deleting" msgstr "Le conteneur doit être vide pour être supprimé" #: lib/cannery_web/live/container_live/index.ex:88 -#: lib/cannery_web/live/container_live/show.ex:75 +#: lib/cannery_web/live/container_live/show.ex:77 #, elixir-autogen, elixir-format msgid "Could not delete %{name}: %{error}" msgstr "Impossible de supprimer %{name} : %{error}" diff --git a/priv/gettext/fr/LC_MESSAGES/prompts.po b/priv/gettext/fr/LC_MESSAGES/prompts.po index e6b93a32..0bcdfb7f 100644 --- a/priv/gettext/fr/LC_MESSAGES/prompts.po +++ b/priv/gettext/fr/LC_MESSAGES/prompts.po @@ -32,7 +32,7 @@ msgid "%{name} created successfully" msgstr "%{name} créé· avec succès" #: lib/cannery_web/live/ammo_type_live/index.ex:47 -#: lib/cannery_web/live/ammo_type_live/show.ex:56 +#: lib/cannery_web/live/ammo_type_live/show.ex:55 #: lib/cannery_web/live/invite_live/index.ex:53 #: lib/cannery_web/live/invite_live/index.ex:133 #: lib/cannery_web/live/tag_live/index.ex:38 @@ -51,7 +51,7 @@ msgid "%{name} enabled succesfully" msgstr "%{name} activé·e avec succès" #: lib/cannery_web/live/container_live/index.ex:81 -#: lib/cannery_web/live/container_live/show.ex:65 +#: lib/cannery_web/live/container_live/show.ex:67 #, elixir-autogen, elixir-format msgid "%{name} has been deleted" msgstr "%{name} a été supprimé·e" @@ -194,7 +194,7 @@ msgstr "" msgid "%{name} added successfully" msgstr "%{name} a été ajouté avec succès" -#: lib/cannery_web/live/container_live/show.ex:41 +#: lib/cannery_web/live/container_live/show.ex:43 #, elixir-autogen, elixir-format msgid "%{tag_name} has been removed from %{container_name}" msgstr "%{tag_name} a été retiré de %{container_name}" diff --git a/priv/gettext/ga/LC_MESSAGES/default.po b/priv/gettext/ga/LC_MESSAGES/default.po index f1bf2459..08d41751 100644 --- a/priv/gettext/ga/LC_MESSAGES/default.po +++ b/priv/gettext/ga/LC_MESSAGES/default.po @@ -657,13 +657,13 @@ msgid "Loading..." msgstr "" #: lib/cannery_web/live/container_live/index.ex:27 -#: lib/cannery_web/live/container_live/show.ex:124 +#: lib/cannery_web/live/container_live/show.ex:126 #, elixir-autogen, elixir-format msgid "Edit %{name}" msgstr "" #: lib/cannery_web/live/container_live/index.ex:65 -#: lib/cannery_web/live/container_live/show.ex:125 +#: lib/cannery_web/live/container_live/show.ex:127 #, elixir-autogen, elixir-format msgid "Edit %{name} tags" msgstr "" @@ -1071,7 +1071,7 @@ msgstr "" msgid "Average CPR" msgstr "" -#: lib/cannery_web/live/ammo_type_live/show.ex:117 +#: lib/cannery_web/live/ammo_type_live/show.ex:120 #, elixir-autogen, elixir-format, fuzzy msgid "Edit %{ammo_type_name}" msgstr "" diff --git a/priv/gettext/ga/LC_MESSAGES/errors.po b/priv/gettext/ga/LC_MESSAGES/errors.po index f8e8eef1..fcd05d90 100644 --- a/priv/gettext/ga/LC_MESSAGES/errors.po +++ b/priv/gettext/ga/LC_MESSAGES/errors.po @@ -30,7 +30,7 @@ msgid "Container must be empty before deleting" msgstr "Caithfidh an coimeádán a bheidh follamh roimh scriosadh" #: lib/cannery_web/live/container_live/index.ex:88 -#: lib/cannery_web/live/container_live/show.ex:75 +#: lib/cannery_web/live/container_live/show.ex:77 #, elixir-autogen, elixir-format msgid "Could not delete %{name}: %{error}" msgstr "Ní feidir %{name} a scriosadh: %{error}" diff --git a/priv/gettext/ga/LC_MESSAGES/prompts.po b/priv/gettext/ga/LC_MESSAGES/prompts.po index e0fdf181..c94cee9b 100644 --- a/priv/gettext/ga/LC_MESSAGES/prompts.po +++ b/priv/gettext/ga/LC_MESSAGES/prompts.po @@ -30,7 +30,7 @@ msgid "%{name} created successfully" msgstr "" #: lib/cannery_web/live/ammo_type_live/index.ex:47 -#: lib/cannery_web/live/ammo_type_live/show.ex:56 +#: lib/cannery_web/live/ammo_type_live/show.ex:55 #: lib/cannery_web/live/invite_live/index.ex:53 #: lib/cannery_web/live/invite_live/index.ex:133 #: lib/cannery_web/live/tag_live/index.ex:38 @@ -49,7 +49,7 @@ msgid "%{name} enabled succesfully" msgstr "" #: lib/cannery_web/live/container_live/index.ex:81 -#: lib/cannery_web/live/container_live/show.ex:65 +#: lib/cannery_web/live/container_live/show.ex:67 #, elixir-autogen, elixir-format msgid "%{name} has been deleted" msgstr "" @@ -183,7 +183,7 @@ msgstr "" msgid "%{name} added successfully" msgstr "" -#: lib/cannery_web/live/container_live/show.ex:41 +#: lib/cannery_web/live/container_live/show.ex:43 #, elixir-autogen, elixir-format msgid "%{tag_name} has been removed from %{container_name}" msgstr "" diff --git a/priv/gettext/prompts.pot b/priv/gettext/prompts.pot index 55f8605f..42c0687c 100644 --- a/priv/gettext/prompts.pot +++ b/priv/gettext/prompts.pot @@ -19,7 +19,7 @@ msgid "%{name} created successfully" msgstr "" #: lib/cannery_web/live/ammo_type_live/index.ex:47 -#: lib/cannery_web/live/ammo_type_live/show.ex:56 +#: lib/cannery_web/live/ammo_type_live/show.ex:55 #: lib/cannery_web/live/invite_live/index.ex:53 #: lib/cannery_web/live/invite_live/index.ex:133 #: lib/cannery_web/live/tag_live/index.ex:38 @@ -38,7 +38,7 @@ msgid "%{name} enabled succesfully" msgstr "" #: lib/cannery_web/live/container_live/index.ex:81 -#: lib/cannery_web/live/container_live/show.ex:65 +#: lib/cannery_web/live/container_live/show.ex:67 #, elixir-autogen, elixir-format msgid "%{name} has been deleted" msgstr "" @@ -172,7 +172,7 @@ msgstr "" msgid "%{name} added successfully" msgstr "" -#: lib/cannery_web/live/container_live/show.ex:41 +#: lib/cannery_web/live/container_live/show.ex:43 #, elixir-autogen, elixir-format msgid "%{tag_name} has been removed from %{container_name}" msgstr ""