feat(dashboard): Setup workflows in V2 routes (#6939)
This commit is contained in:
@@ -820,23 +820,6 @@ export const v1Routes: RouteObject[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "executions",
|
||||
element: <Outlet />,
|
||||
handle: {
|
||||
crumb: () => "Executions",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
lazy: () => import("../../routes/executions/execution-list"),
|
||||
},
|
||||
{
|
||||
path: ":id",
|
||||
lazy: () => import("../../routes/executions/execution-detail"),
|
||||
},
|
||||
],
|
||||
},
|
||||
...settingsExtensions,
|
||||
],
|
||||
},
|
||||
|
||||
@@ -300,6 +300,38 @@ export const v2Routes: RouteObject[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "workflows",
|
||||
element: <Outlet />,
|
||||
handle: {
|
||||
crumb: () => "Workflows",
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: "",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../v2-routes/workflow-executions/workflow-execution-list"
|
||||
),
|
||||
},
|
||||
{
|
||||
path: ":id",
|
||||
lazy: () =>
|
||||
import(
|
||||
"../../v2-routes/workflow-executions/workflow-execution-detail"
|
||||
),
|
||||
handle: {
|
||||
crumb: (data: { workflow: any }) => {
|
||||
if (!data) {
|
||||
return ""
|
||||
}
|
||||
|
||||
return data.workflow.name
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user