diff --git a/lib/broadway_dashboard.ex b/lib/broadway_dashboard.ex index 56acd4f..c00a640 100644 --- a/lib/broadway_dashboard.ex +++ b/lib/broadway_dashboard.ex @@ -145,8 +145,7 @@ defmodule BroadwayDashboard do for name <- assigns.pipelines do name = inspect(name) - {name, - name: name, render: fn -> render_pipeline_or_error(assigns) end, method: :redirect} + {name, "navigate", name: name, render: fn -> render_pipeline_or_error(assigns) end} end nav_bar(items: items, page: assigns[:page]) @@ -158,7 +157,7 @@ defmodule BroadwayDashboard do ~H""" <.live_nav_bar id="broadway_navbar" page={@page}> - <:item name={name} :for={{name, item} <- @items}> + <:item name={name} method={method} :for={{name, method, item} <- @items}> <%= item[:render].() %>