diff --git a/.clabot b/.clabot index d929a4f3..066b13a3 100644 --- a/.clabot +++ b/.clabot @@ -1,4 +1,4 @@ { - "contributors": ["azukaar", "jwr1", "Jogai", "InterN0te", "catmandx", "revam", "Kawanaao", "davis4acca", "george-radu-cs", "BearTS", "lilkidsuave", "ryan-schubert"], + "contributors": ["azukaar", "jwr1", "Jogai", "InterN0te", "catmandx", "revam", "Kawanaao", "davis4acca", "george-radu-cs", "BearTS", "lilkidsuave", "ryan-schubert", "orelgs"], "message": "We require contributors to sign our [Contributor License Agreement](https://github.com/azukaar/Cosmos-Server/blob/master/cla.md). In order for us to review and merge your code, add yourself to the .clabot file as contributor, as a way of signing the CLA." } diff --git a/client/src/pages/config/routes/routeman.jsx b/client/src/pages/config/routes/routeman.jsx index 4ee7faa4..2b1fee59 100644 --- a/client/src/pages/config/routes/routeman.jsx +++ b/client/src/pages/config/routes/routeman.jsx @@ -199,6 +199,9 @@ const RouteManagement = ({ routeConfig, routeNames, config, TargetContainer, noC ["SPA", "Single Page Application"], ["REDIRECT", "Redirection"] ]} + onChange={() => { + formik.setFieldValue("HideFromDashboard", formik.values.Mode === "REDIRECT"); + }} /> diff --git a/client/src/pages/home/index.jsx b/client/src/pages/home/index.jsx index 5235f416..03f4345d 100644 --- a/client/src/pages/home/index.jsx +++ b/client/src/pages/home/index.jsx @@ -467,7 +467,6 @@ const HomePage = () => { )} {config && servApps && routes.map((route) => { - let skip = route.Mode == "REDIRECT"; let containerName; let container; if (route.Mode == "SERVAPP") { @@ -479,10 +478,7 @@ const HomePage = () => { // } } - if (route.HideFromDashboard) - skip = true; - - return !skip && coStatus && (coStatus.homepage.Expanded ? + return !route.HideFromDashboard && coStatus && (coStatus.homepage.Expanded ?