Add app layout to live_session for dashboard menu

Fix the dashboard missing menu by explicitly setting layout: {FirehoseWeb.Layouts, :app} in the live_session.
This ensures the navigation menu is rendered on the authenticated editor dashboard LiveView.
This commit is contained in:
Firehose Bot 2026-07-06 10:37:08 +01:00
parent fe156ef81e
commit ccb52be9db

View File

@ -75,6 +75,7 @@ defmodule FirehoseWeb.Router do
pipe_through [:browser, :require_authenticated_user] pipe_through [:browser, :require_authenticated_user]
live_session :authenticated_user, live_session :authenticated_user,
layout: {FirehoseWeb.Layouts, :app},
on_mount: [{FirehoseWeb.UserAuth, :ensure_authenticated}] do on_mount: [{FirehoseWeb.UserAuth, :ensure_authenticated}] do
live "/editor/dashboard", EditorDashboardLive live "/editor/dashboard", EditorDashboardLive
end end