From a9b13a6d86ebc98a305ec8ab56ed2335349de032 Mon Sep 17 00:00:00 2001 From: d-g-town <66391417+d-g-town@users.noreply.github.com> Date: Wed, 22 May 2024 10:21:54 -0400 Subject: [PATCH] add back /applications route to v2 (#4679) --- dashboard/src/main/home/Home.tsx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/dashboard/src/main/home/Home.tsx b/dashboard/src/main/home/Home.tsx index 74287822c1..c908647537 100644 --- a/dashboard/src/main/home/Home.tsx +++ b/dashboard/src/main/home/Home.tsx @@ -1,6 +1,8 @@ import React, { useContext, useEffect, useRef, useState } from "react"; import dayjs from "dayjs"; import relativeTime from "dayjs/plugin/relativeTime"; +import NoClusterPlaceHolder from "legacy/components/NoClusterPlaceHolder"; +import DashboardRouter from "legacy/main/home/cluster-dashboard/DashboardRouter"; import { createPortal } from "react-dom"; import { Route, @@ -12,6 +14,7 @@ import { Redirect } from "react-router-dom"; import styled, { ThemeProvider } from "styled-components"; import ConfirmOverlay from "components/ConfirmOverlay"; +import Loading from "components/Loading"; import Button from "components/porter/Button"; import Link from "components/porter/Link"; import Modal from "components/porter/Modal"; @@ -524,6 +527,29 @@ const Home: React.FC = (props) => { + { + if (currentCluster?.id === -1) { + return ; + } else if (!currentCluster?.name) { + return ( + + + + ); + } + return ( + + + + ); + }} + />