mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-07 03:06:40 +00:00
hide credentials tab for local sites
This commit is contained in:
@@ -2098,7 +2098,7 @@
|
|||||||
"checkSelectedStatus": "Check Status of Selected",
|
"checkSelectedStatus": "Check Status of Selected",
|
||||||
"credentials": "Credentials",
|
"credentials": "Credentials",
|
||||||
"savecredentials": "Save Credentials",
|
"savecredentials": "Save Credentials",
|
||||||
"regeneratecredentials": "Regenerate Credentials",
|
"regeneratecredentials": "Re-key",
|
||||||
"regenerateCredentials": "Regenerate and save your credentials",
|
"regenerateCredentials": "Regenerate and save your credentials",
|
||||||
"generatedcredentials": "Generated Credentials",
|
"generatedcredentials": "Generated Credentials",
|
||||||
"copyandsavethesecredentials": "Copy and save these credentials",
|
"copyandsavethesecredentials": "Copy and save these credentials",
|
||||||
|
|||||||
@@ -35,18 +35,23 @@ export default async function SettingsLayout(props: SettingsLayoutProps) {
|
|||||||
const navItems = [
|
const navItems = [
|
||||||
{
|
{
|
||||||
title: t('general'),
|
title: t('general'),
|
||||||
href: "/{orgId}/settings/sites/{niceId}/general"
|
href: `/${params.orgId}/settings/sites/${params.niceId}/general`,
|
||||||
},
|
},
|
||||||
{
|
...(site.type !== 'local'
|
||||||
title: t('credentials'),
|
? [
|
||||||
href: "/{orgId}/settings/sites/{niceId}/credentials"
|
{
|
||||||
}
|
title: t('credentials'),
|
||||||
|
href: `/${params.orgId}/settings/sites/${params.niceId}/credentials`,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: []),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SettingsSectionTitle
|
<SettingsSectionTitle
|
||||||
title={t('siteSetting', {siteName: site?.name})}
|
title={t('siteSetting', { siteName: site?.name })}
|
||||||
description={t('siteSettingDescription')}
|
description={t('siteSettingDescription')}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user