Skip to content

Commit

Permalink
Fixed the issue with multiple pipeline navigation (#29)
Browse files Browse the repository at this point in the history
* multiple pipeline navigation

* fixed formatting issue
  • Loading branch information
HarisudhanRavi authored Jan 9, 2024
1 parent 6b48def commit 4f4c394
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/broadway_dashboard.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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].() %>
</:item>
</.live_nav_bar>
Expand Down

0 comments on commit 4f4c394

Please sign in to comment.