From bf0ea4168b1793fcc44a795c534e881a681000e0 Mon Sep 17 00:00:00 2001 From: shibao Date: Sat, 19 Nov 2022 14:41:53 -0500 Subject: [PATCH] fix bug with ammo group not updating after deleting shot group --- CHANGELOG.md | 1 + lib/cannery_web/live/ammo_group_live/show.ex | 11 ++++++++--- priv/gettext/de/LC_MESSAGES/default.po | 16 ++++++++-------- priv/gettext/de/LC_MESSAGES/prompts.po | 6 +++--- priv/gettext/default.pot | 16 ++++++++-------- priv/gettext/en/LC_MESSAGES/default.po | 16 ++++++++-------- priv/gettext/en/LC_MESSAGES/prompts.po | 6 +++--- priv/gettext/es/LC_MESSAGES/default.po | 16 ++++++++-------- priv/gettext/es/LC_MESSAGES/prompts.po | 6 +++--- priv/gettext/fr/LC_MESSAGES/default.po | 16 ++++++++-------- priv/gettext/fr/LC_MESSAGES/prompts.po | 6 +++--- priv/gettext/ga/LC_MESSAGES/default.po | 16 ++++++++-------- priv/gettext/ga/LC_MESSAGES/prompts.po | 6 +++--- priv/gettext/prompts.pot | 6 +++--- 14 files changed, 75 insertions(+), 69 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae668bfb..3f444490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Fix toggle button styling - Miscellanous code improvements - Improve container index table +- Fix bug with ammo not updating after deleting shot group # v0.7.1 - Add shading to table component diff --git a/lib/cannery_web/live/ammo_group_live/show.ex b/lib/cannery_web/live/ammo_group_live/show.ex index 423748f6..9c4164aa 100644 --- a/lib/cannery_web/live/ammo_group_live/show.ex +++ b/lib/cannery_web/live/ammo_group_live/show.ex @@ -30,7 +30,12 @@ defmodule CanneryWeb.AmmoGroupLive.Show do @impl true def handle_params(%{"id" => id}, _url, %{assigns: %{live_action: live_action}} = socket) do - {:noreply, socket |> assign(page_title: page_title(live_action)) |> display_ammo_group(id)} + socket = + socket + |> assign(page_title: page_title(live_action)) + |> display_ammo_group(id) + + {:noreply, socket} end defp page_title(:add_shot_group), do: gettext("Record Shots") @@ -69,14 +74,14 @@ defmodule CanneryWeb.AmmoGroupLive.Show do def handle_event( "delete_shot_group", %{"id" => id}, - %{assigns: %{ammo_group: ammo_group, current_user: current_user}} = socket + %{assigns: %{ammo_group: %{id: ammo_group_id}, current_user: current_user}} = socket ) do {:ok, _} = ActivityLog.get_shot_group!(id, current_user) |> ActivityLog.delete_shot_group(current_user) prompt = dgettext("prompts", "Shot records deleted succesfully") - {:noreply, socket |> put_flash(:info, prompt) |> display_ammo_group(ammo_group)} + {:noreply, socket |> put_flash(:info, prompt) |> display_ammo_group(ammo_group_id)} end @spec display_ammo_group(Socket.t(), AmmoGroup.t() | AmmoGroup.id()) :: Socket.t() diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index 7efd9bfb..79f3acaa 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -324,7 +324,7 @@ msgstr "Keine Tags" #: lib/cannery_web/components/add_shot_group_component.html.heex:37 #: lib/cannery_web/components/ammo_group_table_component.ex:88 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41 -#: lib/cannery_web/live/ammo_group_live/show.ex:88 +#: lib/cannery_web/live/ammo_group_live/show.ex:93 #: lib/cannery_web/live/range_live/form_component.html.heex:29 #: lib/cannery_web/live/range_live/index.ex:82 #, elixir-autogen, elixir-format @@ -486,7 +486,7 @@ msgstr "Schießplatz" msgid "Range day" msgstr "Range Day" -#: lib/cannery_web/live/ammo_group_live/show.ex:89 +#: lib/cannery_web/live/ammo_group_live/show.ex:94 #: lib/cannery_web/live/range_live/index.ex:83 #, elixir-autogen, elixir-format msgid "Date" @@ -519,7 +519,7 @@ msgstr "Munitionsgruppen" msgid "Date (UTC)" msgstr "Zeit (UTC)" -#: lib/cannery_web/live/ammo_group_live/show.ex:37 +#: lib/cannery_web/live/ammo_group_live/show.ex:42 #: lib/cannery_web/live/range_live/index.ex:32 #, elixir-autogen, elixir-format msgid "Edit Shot Records" @@ -541,7 +541,7 @@ msgstr "Keine Schüsse dokumentiert" msgid "Rounds left" msgstr "Patronen verbleibend" -#: lib/cannery_web/live/ammo_group_live/show.ex:87 +#: lib/cannery_web/live/ammo_group_live/show.ex:92 #: lib/cannery_web/live/range_live/index.ex:81 #: lib/cannery_web/live/range_live/index.html.heex:62 #, elixir-autogen, elixir-format @@ -743,7 +743,7 @@ msgstr "Registrieren" msgid "Reset your password" msgstr "Passwort zurücksetzen" -#: lib/cannery_web/live/ammo_group_live/show.ex:36 +#: lib/cannery_web/live/ammo_group_live/show.ex:41 #: lib/cannery_web/live/range_live/index.ex:26 #, elixir-autogen, elixir-format msgid "Record Shots" @@ -825,12 +825,12 @@ msgstr "Quellcode ansehen" msgid "Catalog" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:40 +#: lib/cannery_web/live/ammo_group_live/show.ex:45 #, elixir-autogen, elixir-format, fuzzy msgid "Edit Ammo" msgstr "Munitionstyp bearbeiten" -#: lib/cannery_web/live/ammo_group_live/show.ex:38 +#: lib/cannery_web/live/ammo_group_live/show.ex:43 #, elixir-autogen, elixir-format, fuzzy msgid "Move Ammo" msgstr "Munition verschieben" @@ -840,7 +840,7 @@ msgstr "Munition verschieben" msgid "No ammo in this container" msgstr "Keine Munitionsgruppe in diesem Behälter" -#: lib/cannery_web/live/ammo_group_live/show.ex:39 +#: lib/cannery_web/live/ammo_group_live/show.ex:44 #, elixir-autogen, elixir-format, fuzzy msgid "Show Ammo" msgstr "Zeige Munitionsarten" diff --git a/priv/gettext/de/LC_MESSAGES/prompts.po b/priv/gettext/de/LC_MESSAGES/prompts.po index 6398d8f5..3d633df7 100644 --- a/priv/gettext/de/LC_MESSAGES/prompts.po +++ b/priv/gettext/de/LC_MESSAGES/prompts.po @@ -213,13 +213,13 @@ msgstr "Schüsse erfolgreich dokumentiert" msgid "Are you sure you want to unstage this ammo?" msgstr "Sind sie sicher, dass Sie diese Munition demarkieren möchten?" -#: lib/cannery_web/live/ammo_group_live/show.ex:132 +#: lib/cannery_web/live/ammo_group_live/show.ex:137 #: lib/cannery_web/live/range_live/index.ex:159 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "Sind sie sicher, dass sie die Schießkladde löschen möchten?" -#: lib/cannery_web/live/ammo_group_live/show.ex:78 +#: lib/cannery_web/live/ammo_group_live/show.ex:83 #: lib/cannery_web/live/range_live/index.ex:54 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" @@ -271,7 +271,7 @@ msgstr "Möchten Sie die Sprache wechseln?" msgid "Language updated successfully." msgstr "Spracheinstellung gespeichert." -#: lib/cannery_web/live/ammo_group_live/show.ex:50 +#: lib/cannery_web/live/ammo_group_live/show.ex:55 #, elixir-autogen, elixir-format, fuzzy msgid "Ammo deleted succesfully" msgstr "Munitionsgruppe erfolgreich gelöscht" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 6507f5a8..b491ebc2 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -309,7 +309,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_group_component.html.heex:37 #: lib/cannery_web/components/ammo_group_table_component.ex:88 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41 -#: lib/cannery_web/live/ammo_group_live/show.ex:88 +#: lib/cannery_web/live/ammo_group_live/show.ex:93 #: lib/cannery_web/live/range_live/form_component.html.heex:29 #: lib/cannery_web/live/range_live/index.ex:82 #, elixir-autogen, elixir-format @@ -469,7 +469,7 @@ msgstr "" msgid "Range day" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:89 +#: lib/cannery_web/live/ammo_group_live/show.ex:94 #: lib/cannery_web/live/range_live/index.ex:83 #, elixir-autogen, elixir-format msgid "Date" @@ -502,7 +502,7 @@ msgstr "" msgid "Date (UTC)" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:37 +#: lib/cannery_web/live/ammo_group_live/show.ex:42 #: lib/cannery_web/live/range_live/index.ex:32 #, elixir-autogen, elixir-format msgid "Edit Shot Records" @@ -524,7 +524,7 @@ msgstr "" msgid "Rounds left" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:87 +#: lib/cannery_web/live/ammo_group_live/show.ex:92 #: lib/cannery_web/live/range_live/index.ex:81 #: lib/cannery_web/live/range_live/index.html.heex:62 #, elixir-autogen, elixir-format @@ -726,7 +726,7 @@ msgstr "" msgid "Reset your password" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:36 +#: lib/cannery_web/live/ammo_group_live/show.ex:41 #: lib/cannery_web/live/range_live/index.ex:26 #, elixir-autogen, elixir-format msgid "Record Shots" @@ -808,12 +808,12 @@ msgstr "" msgid "Catalog" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:40 +#: lib/cannery_web/live/ammo_group_live/show.ex:45 #, elixir-autogen, elixir-format msgid "Edit Ammo" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:38 +#: lib/cannery_web/live/ammo_group_live/show.ex:43 #, elixir-autogen, elixir-format msgid "Move Ammo" msgstr "" @@ -823,7 +823,7 @@ msgstr "" msgid "No ammo in this container" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:39 +#: lib/cannery_web/live/ammo_group_live/show.ex:44 #, elixir-autogen, elixir-format msgid "Show Ammo" msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 1b7b4646..2f86423a 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -310,7 +310,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_group_component.html.heex:37 #: lib/cannery_web/components/ammo_group_table_component.ex:88 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41 -#: lib/cannery_web/live/ammo_group_live/show.ex:88 +#: lib/cannery_web/live/ammo_group_live/show.ex:93 #: lib/cannery_web/live/range_live/form_component.html.heex:29 #: lib/cannery_web/live/range_live/index.ex:82 #, elixir-autogen, elixir-format @@ -470,7 +470,7 @@ msgstr "" msgid "Range day" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:89 +#: lib/cannery_web/live/ammo_group_live/show.ex:94 #: lib/cannery_web/live/range_live/index.ex:83 #, elixir-autogen, elixir-format msgid "Date" @@ -503,7 +503,7 @@ msgstr "" msgid "Date (UTC)" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:37 +#: lib/cannery_web/live/ammo_group_live/show.ex:42 #: lib/cannery_web/live/range_live/index.ex:32 #, elixir-autogen, elixir-format msgid "Edit Shot Records" @@ -525,7 +525,7 @@ msgstr "" msgid "Rounds left" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:87 +#: lib/cannery_web/live/ammo_group_live/show.ex:92 #: lib/cannery_web/live/range_live/index.ex:81 #: lib/cannery_web/live/range_live/index.html.heex:62 #, elixir-autogen, elixir-format @@ -727,7 +727,7 @@ msgstr "" msgid "Reset your password" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:36 +#: lib/cannery_web/live/ammo_group_live/show.ex:41 #: lib/cannery_web/live/range_live/index.ex:26 #, elixir-autogen, elixir-format, fuzzy msgid "Record Shots" @@ -809,12 +809,12 @@ msgstr "" msgid "Catalog" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:40 +#: lib/cannery_web/live/ammo_group_live/show.ex:45 #, elixir-autogen, elixir-format, fuzzy msgid "Edit Ammo" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:38 +#: lib/cannery_web/live/ammo_group_live/show.ex:43 #, elixir-autogen, elixir-format, fuzzy msgid "Move Ammo" msgstr "" @@ -824,7 +824,7 @@ msgstr "" msgid "No ammo in this container" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:39 +#: lib/cannery_web/live/ammo_group_live/show.ex:44 #, elixir-autogen, elixir-format, fuzzy msgid "Show Ammo" msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/prompts.po b/priv/gettext/en/LC_MESSAGES/prompts.po index f90409b4..c5bd0e0d 100644 --- a/priv/gettext/en/LC_MESSAGES/prompts.po +++ b/priv/gettext/en/LC_MESSAGES/prompts.po @@ -193,13 +193,13 @@ msgstr "" msgid "Are you sure you want to unstage this ammo?" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:132 +#: lib/cannery_web/live/ammo_group_live/show.ex:137 #: lib/cannery_web/live/range_live/index.ex:159 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:78 +#: lib/cannery_web/live/ammo_group_live/show.ex:83 #: lib/cannery_web/live/range_live/index.ex:54 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" @@ -251,7 +251,7 @@ msgstr "" msgid "Language updated successfully." msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:50 +#: lib/cannery_web/live/ammo_group_live/show.ex:55 #, elixir-autogen, elixir-format, fuzzy msgid "Ammo deleted succesfully" msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 91b8051c..ff98b7ee 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -324,7 +324,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_group_component.html.heex:37 #: lib/cannery_web/components/ammo_group_table_component.ex:88 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41 -#: lib/cannery_web/live/ammo_group_live/show.ex:88 +#: lib/cannery_web/live/ammo_group_live/show.ex:93 #: lib/cannery_web/live/range_live/form_component.html.heex:29 #: lib/cannery_web/live/range_live/index.ex:82 #, elixir-autogen, elixir-format @@ -484,7 +484,7 @@ msgstr "" msgid "Range day" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:89 +#: lib/cannery_web/live/ammo_group_live/show.ex:94 #: lib/cannery_web/live/range_live/index.ex:83 #, elixir-autogen, elixir-format msgid "Date" @@ -517,7 +517,7 @@ msgstr "" msgid "Date (UTC)" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:37 +#: lib/cannery_web/live/ammo_group_live/show.ex:42 #: lib/cannery_web/live/range_live/index.ex:32 #, elixir-autogen, elixir-format msgid "Edit Shot Records" @@ -539,7 +539,7 @@ msgstr "" msgid "Rounds left" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:87 +#: lib/cannery_web/live/ammo_group_live/show.ex:92 #: lib/cannery_web/live/range_live/index.ex:81 #: lib/cannery_web/live/range_live/index.html.heex:62 #, elixir-autogen, elixir-format @@ -741,7 +741,7 @@ msgstr "" msgid "Reset your password" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:36 +#: lib/cannery_web/live/ammo_group_live/show.ex:41 #: lib/cannery_web/live/range_live/index.ex:26 #, elixir-autogen, elixir-format msgid "Record Shots" @@ -823,12 +823,12 @@ msgstr "" msgid "Catalog" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:40 +#: lib/cannery_web/live/ammo_group_live/show.ex:45 #, elixir-autogen, elixir-format, fuzzy msgid "Edit Ammo" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:38 +#: lib/cannery_web/live/ammo_group_live/show.ex:43 #, elixir-autogen, elixir-format, fuzzy msgid "Move Ammo" msgstr "" @@ -838,7 +838,7 @@ msgstr "" msgid "No ammo in this container" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:39 +#: lib/cannery_web/live/ammo_group_live/show.ex:44 #, elixir-autogen, elixir-format, fuzzy msgid "Show Ammo" msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/prompts.po b/priv/gettext/es/LC_MESSAGES/prompts.po index 1846e4a4..c1df6a1a 100644 --- a/priv/gettext/es/LC_MESSAGES/prompts.po +++ b/priv/gettext/es/LC_MESSAGES/prompts.po @@ -212,13 +212,13 @@ msgstr "Tiros registrados exitosamente" msgid "Are you sure you want to unstage this ammo?" msgstr "Está seguro que desea desmontar esta munición?" -#: lib/cannery_web/live/ammo_group_live/show.ex:132 +#: lib/cannery_web/live/ammo_group_live/show.ex:137 #: lib/cannery_web/live/range_live/index.ex:159 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:78 +#: lib/cannery_web/live/ammo_group_live/show.ex:83 #: lib/cannery_web/live/range_live/index.ex:54 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" @@ -270,7 +270,7 @@ msgstr "" msgid "Language updated successfully." msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:50 +#: lib/cannery_web/live/ammo_group_live/show.ex:55 #, elixir-autogen, elixir-format, fuzzy msgid "Ammo deleted succesfully" msgstr "" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index 24a5167a..76f9f19a 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -324,7 +324,7 @@ msgstr "Aucun tag" #: lib/cannery_web/components/add_shot_group_component.html.heex:37 #: lib/cannery_web/components/ammo_group_table_component.ex:88 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41 -#: lib/cannery_web/live/ammo_group_live/show.ex:88 +#: lib/cannery_web/live/ammo_group_live/show.ex:93 #: lib/cannery_web/live/range_live/form_component.html.heex:29 #: lib/cannery_web/live/range_live/index.ex:82 #, elixir-autogen, elixir-format @@ -488,7 +488,7 @@ msgstr "Portée" msgid "Range day" msgstr "Journée de stand" -#: lib/cannery_web/live/ammo_group_live/show.ex:89 +#: lib/cannery_web/live/ammo_group_live/show.ex:94 #: lib/cannery_web/live/range_live/index.ex:83 #, elixir-autogen, elixir-format msgid "Date" @@ -521,7 +521,7 @@ msgstr "Groupes de munition" msgid "Date (UTC)" msgstr "Date (UTC)" -#: lib/cannery_web/live/ammo_group_live/show.ex:37 +#: lib/cannery_web/live/ammo_group_live/show.ex:42 #: lib/cannery_web/live/range_live/index.ex:32 #, elixir-autogen, elixir-format msgid "Edit Shot Records" @@ -543,7 +543,7 @@ msgstr "Aucun tir enregistré" msgid "Rounds left" msgstr "Cartouches restantes" -#: lib/cannery_web/live/ammo_group_live/show.ex:87 +#: lib/cannery_web/live/ammo_group_live/show.ex:92 #: lib/cannery_web/live/range_live/index.ex:81 #: lib/cannery_web/live/range_live/index.html.heex:62 #, elixir-autogen, elixir-format @@ -745,7 +745,7 @@ msgstr "S’enregistrer" msgid "Reset your password" msgstr "Réinitialiser votre mot de passe" -#: lib/cannery_web/live/ammo_group_live/show.ex:36 +#: lib/cannery_web/live/ammo_group_live/show.ex:41 #: lib/cannery_web/live/range_live/index.ex:26 #, elixir-autogen, elixir-format msgid "Record Shots" @@ -827,12 +827,12 @@ msgstr "Voir le code source" msgid "Catalog" msgstr "Catalogue" -#: lib/cannery_web/live/ammo_group_live/show.ex:40 +#: lib/cannery_web/live/ammo_group_live/show.ex:45 #, elixir-autogen, elixir-format, fuzzy msgid "Edit Ammo" msgstr "Éditer le type de munition" -#: lib/cannery_web/live/ammo_group_live/show.ex:38 +#: lib/cannery_web/live/ammo_group_live/show.ex:43 #, elixir-autogen, elixir-format, fuzzy msgid "Move Ammo" msgstr "Déplacer munition" @@ -842,7 +842,7 @@ msgstr "Déplacer munition" msgid "No ammo in this container" msgstr "Aucun groupe de munition pour ce conteneur" -#: lib/cannery_web/live/ammo_group_live/show.ex:39 +#: lib/cannery_web/live/ammo_group_live/show.ex:44 #, elixir-autogen, elixir-format, fuzzy msgid "Show Ammo" msgstr "Montrer le type de munition" diff --git a/priv/gettext/fr/LC_MESSAGES/prompts.po b/priv/gettext/fr/LC_MESSAGES/prompts.po index 0bcdfb7f..04552408 100644 --- a/priv/gettext/fr/LC_MESSAGES/prompts.po +++ b/priv/gettext/fr/LC_MESSAGES/prompts.po @@ -214,13 +214,13 @@ msgstr "Tirs enregistré avec succès" msgid "Are you sure you want to unstage this ammo?" msgstr "Êtes-vous certain·e de vouloir désélectionner cette munition ?" -#: lib/cannery_web/live/ammo_group_live/show.ex:132 +#: lib/cannery_web/live/ammo_group_live/show.ex:137 #: lib/cannery_web/live/range_live/index.ex:159 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "Êtes-vous certain·e de vouloir supprimer cet enregistrement de tir ?" -#: lib/cannery_web/live/ammo_group_live/show.ex:78 +#: lib/cannery_web/live/ammo_group_live/show.ex:83 #: lib/cannery_web/live/range_live/index.ex:54 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" @@ -272,7 +272,7 @@ msgstr "Êtes-vous certain·e de vouloir changer votre langue ?" msgid "Language updated successfully." msgstr "Langue mise à jour avec succès." -#: lib/cannery_web/live/ammo_group_live/show.ex:50 +#: lib/cannery_web/live/ammo_group_live/show.ex:55 #, elixir-autogen, elixir-format, fuzzy msgid "Ammo deleted succesfully" msgstr "Groupe de munition supprimé avec succès" diff --git a/priv/gettext/ga/LC_MESSAGES/default.po b/priv/gettext/ga/LC_MESSAGES/default.po index 08d41751..7940c23d 100644 --- a/priv/gettext/ga/LC_MESSAGES/default.po +++ b/priv/gettext/ga/LC_MESSAGES/default.po @@ -320,7 +320,7 @@ msgstr "" #: lib/cannery_web/components/add_shot_group_component.html.heex:37 #: lib/cannery_web/components/ammo_group_table_component.ex:88 #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:41 -#: lib/cannery_web/live/ammo_group_live/show.ex:88 +#: lib/cannery_web/live/ammo_group_live/show.ex:93 #: lib/cannery_web/live/range_live/form_component.html.heex:29 #: lib/cannery_web/live/range_live/index.ex:82 #, elixir-autogen, elixir-format @@ -480,7 +480,7 @@ msgstr "" msgid "Range day" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:89 +#: lib/cannery_web/live/ammo_group_live/show.ex:94 #: lib/cannery_web/live/range_live/index.ex:83 #, elixir-autogen, elixir-format msgid "Date" @@ -513,7 +513,7 @@ msgstr "" msgid "Date (UTC)" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:37 +#: lib/cannery_web/live/ammo_group_live/show.ex:42 #: lib/cannery_web/live/range_live/index.ex:32 #, elixir-autogen, elixir-format msgid "Edit Shot Records" @@ -535,7 +535,7 @@ msgstr "" msgid "Rounds left" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:87 +#: lib/cannery_web/live/ammo_group_live/show.ex:92 #: lib/cannery_web/live/range_live/index.ex:81 #: lib/cannery_web/live/range_live/index.html.heex:62 #, elixir-autogen, elixir-format @@ -737,7 +737,7 @@ msgstr "" msgid "Reset your password" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:36 +#: lib/cannery_web/live/ammo_group_live/show.ex:41 #: lib/cannery_web/live/range_live/index.ex:26 #, elixir-autogen, elixir-format msgid "Record Shots" @@ -819,12 +819,12 @@ msgstr "" msgid "Catalog" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:40 +#: lib/cannery_web/live/ammo_group_live/show.ex:45 #, elixir-autogen, elixir-format msgid "Edit Ammo" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:38 +#: lib/cannery_web/live/ammo_group_live/show.ex:43 #, elixir-autogen, elixir-format msgid "Move Ammo" msgstr "" @@ -834,7 +834,7 @@ msgstr "" msgid "No ammo in this container" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:39 +#: lib/cannery_web/live/ammo_group_live/show.ex:44 #, elixir-autogen, elixir-format msgid "Show Ammo" msgstr "" diff --git a/priv/gettext/ga/LC_MESSAGES/prompts.po b/priv/gettext/ga/LC_MESSAGES/prompts.po index c94cee9b..d32b4c19 100644 --- a/priv/gettext/ga/LC_MESSAGES/prompts.po +++ b/priv/gettext/ga/LC_MESSAGES/prompts.po @@ -203,13 +203,13 @@ msgstr "" msgid "Are you sure you want to unstage this ammo?" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:132 +#: lib/cannery_web/live/ammo_group_live/show.ex:137 #: lib/cannery_web/live/range_live/index.ex:159 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:78 +#: lib/cannery_web/live/ammo_group_live/show.ex:83 #: lib/cannery_web/live/range_live/index.ex:54 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" @@ -261,7 +261,7 @@ msgstr "" msgid "Language updated successfully." msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:50 +#: lib/cannery_web/live/ammo_group_live/show.ex:55 #, elixir-autogen, elixir-format msgid "Ammo deleted succesfully" msgstr "" diff --git a/priv/gettext/prompts.pot b/priv/gettext/prompts.pot index 42c0687c..a9616cdb 100644 --- a/priv/gettext/prompts.pot +++ b/priv/gettext/prompts.pot @@ -192,13 +192,13 @@ msgstr "" msgid "Are you sure you want to unstage this ammo?" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:132 +#: lib/cannery_web/live/ammo_group_live/show.ex:137 #: lib/cannery_web/live/range_live/index.ex:159 #, elixir-autogen, elixir-format msgid "Are you sure you want to delete this shot record?" msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:78 +#: lib/cannery_web/live/ammo_group_live/show.ex:83 #: lib/cannery_web/live/range_live/index.ex:54 #, elixir-autogen, elixir-format msgid "Shot records deleted succesfully" @@ -250,7 +250,7 @@ msgstr "" msgid "Language updated successfully." msgstr "" -#: lib/cannery_web/live/ammo_group_live/show.ex:50 +#: lib/cannery_web/live/ammo_group_live/show.ex:55 #, elixir-autogen, elixir-format msgid "Ammo deleted succesfully" msgstr ""