Skip to content

Commit

Permalink
re-add stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen committed May 2, 2024
1 parent 00cd0de commit 602a173
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dashboard/src/main/home/cluster-dashboard/DashboardRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import DashboardRoutes from "./dashboard/Routes";
import GuardedRoute from "shared/auth/RouteGuard";
import AppDashboard from "./apps/AppDashboard";
import JobDashboard from "./jobs/JobDashboard";
import ExpandedEnvGroupDashboard from "./env-groups/ExpandedEnvGroupDashboard";
import EnvGroupDashboard from "./env-groups/EnvGroupDashboard";

const LazyPreviewEnvironmentsRoutes = loadable(
// @ts-ignore
Expand Down Expand Up @@ -146,6 +148,24 @@ const DashboardRouter: React.FC<Props> = ({
sortType={sortType}
/>
</GuardedRoute>
<GuardedRoute
path={"/env-groups/:name"}
scope="env_group"
resource=""
verb={["get", "list"]}
>
<ExpandedEnvGroupDashboard
currentCluster={currentCluster}
/>
</GuardedRoute>
<GuardedRoute
path={"/env-groups"}
scope="env_group"
resource=""
verb={["get", "list"]}
>
<EnvGroupDashboard currentCluster={currentCluster} />
</GuardedRoute>
<Route path={["/cluster-dashboard"]}>
<DashboardRoutes />
</Route>
Expand Down

0 comments on commit 602a173

Please sign in to comment.