From 4f4c394e6fc0ed86361522c36652aadb2702c441 Mon Sep 17 00:00:00 2001 From: Harisudhan V R Date: Wed, 10 Jan 2024 00:42:50 +0530 Subject: [PATCH] Fixed the issue with multiple pipeline navigation (#29) * multiple pipeline navigation * fixed formatting issue --- lib/broadway_dashboard.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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].() %>