From e164eb03afaaf406fd7f421aabceba915de4e847 Mon Sep 17 00:00:00 2001 From: Jannik Streek Date: Wed, 18 Dec 2024 07:58:35 +0100 Subject: [PATCH] fix delete --- assets/js/app.js | 2 +- .../templates/layout/app_static.html.heex | 2 +- priv/gettext/de/LC_MESSAGES/default.po | 20 +++++++++---------- priv/gettext/default.pot | 20 +++++++++---------- priv/gettext/en/LC_MESSAGES/default.po | 20 +++++++++---------- 5 files changed, 32 insertions(+), 32 deletions(-) diff --git a/assets/js/app.js b/assets/js/app.js index 2c29f7b8..9d01f5ea 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -158,7 +158,7 @@ Hooks.StoreRecentBrainstorming = { Hooks.RemoveMissingBrainstorming = { mounted() { - const missingId = this.el.dataset.missingId; + const missingId = this.el.dataset.brainstormingId; if (missingId) { const recentBrainstormings = JSON.parse(localStorage.getItem('brainstormings') || '{}'); delete recentBrainstormings[missingId] diff --git a/lib/mindwendel_web/templates/layout/app_static.html.heex b/lib/mindwendel_web/templates/layout/app_static.html.heex index 329efb01..b7561e82 100644 --- a/lib/mindwendel_web/templates/layout/app_static.html.heex +++ b/lib/mindwendel_web/templates/layout/app_static.html.heex @@ -1,4 +1,4 @@ -
+
<%= if Phoenix.Flash.get(@flash, :info) do %>