Make the first ssh page and conditional http page

This commit is contained in:
Owen
2026-05-22 15:12:37 -07:00
parent 454449ec8a
commit 9d77fcc457
7 changed files with 398 additions and 8 deletions
@@ -84,13 +84,23 @@ export default async function ResourceLayout(props: ResourceLayoutProps) {
{
title: t("general"),
href: `/{orgId}/settings/resources/proxy/{niceId}/general`
},
{
title: t("proxy"),
href: `/{orgId}/settings/resources/proxy/{niceId}/proxy`
}
];
if (resource.browserAccessType === "http") {
navItems.push({
title: t("httpSettings"),
href: `/{orgId}/settings/resources/proxy/{niceId}/http`
});
}
if (resource.browserAccessType === "ssh") {
navItems.push({
title: t("sshSettings"),
href: `/{orgId}/settings/resources/proxy/{niceId}/ssh`
});
}
if (resource.http) {
navItems.push({
title: t("authentication"),