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}