From 2d823ccaf7c81a3f99ea9cae5bcf70a0c5ffa770 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Fri, 6 Feb 2026 10:57:58 +0100 Subject: [PATCH] fix: update target id for js hiding of row in notification index --- lib/admin_web/live/notification_live/index.ex | 7 +++++-- lib/admin_web/live/notification_live/show.ex | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/admin_web/live/notification_live/index.ex b/lib/admin_web/live/notification_live/index.ex index f11d314c3..a33466b04 100644 --- a/lib/admin_web/live/notification_live/index.ex +++ b/lib/admin_web/live/notification_live/index.ex @@ -46,10 +46,13 @@ defmodule AdminWeb.NotificationLive.Index do <.link navigate={~p"/admin/notifications/#{notification}"}>Show - <:action :let={{id, notification}}> + <:action :let={{_id, notification}}> <.link class="text-error" - phx-click={JS.push("delete_wip", value: %{id: notification.id}) |> hide("##{id}")} + phx-click={ + JS.push("delete_wip", value: %{id: notification.id}) + |> hide("#notifications-#{notification.id}") + } data-confirm="Are you sure?" > Delete diff --git a/lib/admin_web/live/notification_live/show.ex b/lib/admin_web/live/notification_live/show.ex index d618a8639..49b055639 100644 --- a/lib/admin_web/live/notification_live/show.ex +++ b/lib/admin_web/live/notification_live/show.ex @@ -85,13 +85,13 @@ defmodule AdminWeb.NotificationLive.Show do >
{localized_email.subject} - {localized_email.message} + {localized_email.message}
{localized_email.button_text} - {localized_email.button_url} + {localized_email.button_url}