Display static changed banner instead of toast

This commit is contained in:
Claudio Ortolina
2026-02-28 10:30:44 +00:00
parent be66aaeb87
commit 2f57ce2e67
4 changed files with 30 additions and 18 deletions
+1 -8
View File
@@ -2,13 +2,6 @@ defmodule MusicLibraryWeb.Hooks.StaticAssets do
use MusicLibraryWeb, :live_component
def on_mount(:default, _params, _session, socket) do
socket =
if static_changed?(socket) do
put_toast(socket, :warning, gettext("The application has been updated, please reload."))
else
socket
end
{:cont, socket}
{:cont, assign(socket, :static_changed, static_changed?(socket))}
end
end