Extract StaticAssets hook with a single default live_session
This commit is contained in:
@@ -17,13 +17,6 @@ defmodule MusicLibraryWeb.CollectionLive.Index do
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket) do
|
||||
socket =
|
||||
if static_changed?(socket) do
|
||||
put_flash(socket, :warning, gettext("The application has been updated, please reload."))
|
||||
else
|
||||
socket
|
||||
end
|
||||
|
||||
{:ok, assign(socket, :nav_section, :records)}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user