Give the landing-page save button its own label
Some checks failed
CD / Build and push images (push) Successful in 3m53s
CD / Deploy to Test (push) Successful in 10s
CI / Lint, typecheck, test (push) Successful in 4m12s
CI / Build container images (push) Has been skipped
CD / Smoke tests against Test (push) Successful in 1m14s
CD / Promote to Int (push) Successful in 13s
CI / Auth e2e pack (push) Failing after 2m56s
CI / Import/export fidelity gate (push) Has been skipped
Some checks failed
CD / Build and push images (push) Successful in 3m53s
CD / Deploy to Test (push) Successful in 10s
CI / Lint, typecheck, test (push) Successful in 4m12s
CI / Build container images (push) Has been skipped
CD / Smoke tests against Test (push) Successful in 1m14s
CD / Promote to Int (push) Successful in 13s
CI / Auth e2e pack (push) Failing after 2m56s
CI / Import/export fidelity gate (push) Has been skipped
The landing form reused the legal namespace's "Save legal pages" label, so two buttons shared that text and the legal e2e's page-wide button lookup hit a strict-mode violation. Use a dedicated settings-namespace "Save landing page" label instead. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EwZ4jR4KFAPvpjWevfUGX1
This commit is contained in:
parent
9c64166b10
commit
abf49c7c0e
@ -244,7 +244,6 @@ function PublicApiSettingsForm({ settings }: { settings: InstanceSettings }): Re
|
||||
*/
|
||||
function LandingSettingsForm({ settings }: { settings: InstanceSettings }): React.JSX.Element {
|
||||
const { t } = useTranslation('settings');
|
||||
const { t: tLegal } = useTranslation('legal');
|
||||
const queryClient = useQueryClient();
|
||||
const [content, setContent] = useState(settings['home.content']);
|
||||
const [error, setError] = useState<unknown>(null);
|
||||
@ -277,7 +276,7 @@ function LandingSettingsForm({ settings }: { settings: InstanceSettings }): Reac
|
||||
<FormSuccess message={saved ? t('landing.saved') : null} />
|
||||
<LegalTextField label={t('landing.label')} value={content} onChange={setContent} />
|
||||
<button type="submit" className="button" disabled={busy}>
|
||||
{tLegal('admin.save')}
|
||||
{t('landing.save')}
|
||||
</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
"title": "Startseite",
|
||||
"hint": "Inhalt der öffentlichen Startseite (/) als Markdown. Leer lassen zeigt den eingebauten Willkommenstext.",
|
||||
"label": "Startseiten-Inhalt (Markdown)",
|
||||
"save": "Startseite speichern",
|
||||
"saved": "Gespeichert."
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
"title": "Landing page",
|
||||
"hint": "The public home page (/) content as Markdown. Leave empty to show the built-in welcome text.",
|
||||
"label": "Landing page content (Markdown)",
|
||||
"save": "Save landing page",
|
||||
"saved": "Saved."
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user