update breadcrumbs to include configure

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-03-15 01:54:20 -04:00
1 parent c07f68dfb1
commit f9e4c0f857
1 file changed
+4 -1
+4 -1
View File
@@ -258,7 +258,10 @@ const CreateInfrastructureMonitor = () => {
<Breadcrumbs
list={[
{ name: "Infrastructure monitors", path: "/infrastructure" },
{ name: isCreate ? "Create" : "Configure", path: `/infrastructure/${isCreate ? "create" : `configure/${monitorId}`}` },
...(isCreate
? [{ name: "Create", path: "/infrastructure/create" }]
: [{ name: "Details", path: `/infrastructure/${monitorId}` }, { name: "Configure", path: `/infrastructure/configure/${monitorId}` }]
),
]}
/>
<Stack