mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-19 09:09:51 +02:00
Make the first ssh page and conditional http page
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user