mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-12 11:27:34 +03:00
fix titles
This commit is contained in:
parent
3c5298e304
commit
fdc0ef76c2
@ -82,11 +82,7 @@ const integrationSections = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export default function GlobalConfigView() {
|
export default function GlobalConfigView() {
|
||||||
const { t, i18n } = useTranslation([
|
const { t } = useTranslation(["views/settings", "config/global", "common"]);
|
||||||
"views/settings",
|
|
||||||
"config/global",
|
|
||||||
"common",
|
|
||||||
]);
|
|
||||||
const defaultSharedSection = sharedSections[0]?.key ?? "";
|
const defaultSharedSection = sharedSections[0]?.key ?? "";
|
||||||
const defaultSystemSection = systemSections[0]?.key ?? "";
|
const defaultSystemSection = systemSections[0]?.key ?? "";
|
||||||
const defaultIntegrationSection = integrationSections[0]?.key ?? "";
|
const defaultIntegrationSection = integrationSections[0]?.key ?? "";
|
||||||
@ -214,28 +210,10 @@ export default function GlobalConfigView() {
|
|||||||
activeSection === section.key ? "block" : "hidden",
|
activeSection === section.key ? "block" : "hidden",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Heading as="h4" className="mb-1">
|
|
||||||
{t(`${section.key}.label`, {
|
|
||||||
ns: "config/global",
|
|
||||||
defaultValue:
|
|
||||||
section.key.charAt(0).toUpperCase() +
|
|
||||||
section.key.slice(1).replace(/_/g, " "),
|
|
||||||
})}
|
|
||||||
</Heading>
|
|
||||||
{i18n.exists(`${section.key}.description`, {
|
|
||||||
ns: "config/global",
|
|
||||||
}) && (
|
|
||||||
<p className="mb-4 text-sm text-muted-foreground">
|
|
||||||
{t(`${section.key}.description`, {
|
|
||||||
ns: "config/global",
|
|
||||||
})}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<SectionComponent
|
<SectionComponent
|
||||||
level="global"
|
level="global"
|
||||||
onSave={handleSave}
|
onSave={handleSave}
|
||||||
showTitle={false}
|
showTitle={true}
|
||||||
sectionConfig={getSectionConfig(section.key, "global")}
|
sectionConfig={getSectionConfig(section.key, "global")}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -52,7 +52,7 @@ export function createSingleSectionPage({
|
|||||||
return (
|
return (
|
||||||
<div className="flex size-full flex-col pr-2">
|
<div className="flex size-full flex-col pr-2">
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<Heading as="h2">
|
<Heading as="h3">
|
||||||
{t(`${sectionKey}.label`, { ns: sectionNamespace })}
|
{t(`${sectionKey}.label`, { ns: sectionNamespace })}
|
||||||
</Heading>
|
</Heading>
|
||||||
{i18n.exists(`${sectionKey}.description`, {
|
{i18n.exists(`${sectionKey}.description`, {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user