fix(project-editor): preserve multilingual nav labels on edit

updateLabel() previously overwrote NavigationItemConfig.label with a bare
string via updateNavLink, destroying every other locale's translation
whenever a localized label object was edited. Add a facade method
updateNavLinkLabel() that inspects the existing label shape: plain
strings are replaced as before, but localized objects only have the
current default locale's key overwritten, leaving other locales intact.
This commit is contained in:
sdarbinyan
2026-07-13 15:57:39 +04:00
parent a8b2b4bf0b
commit 68442919d3
2 changed files with 33 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ export class ProjectEditorNavigationSectionComponent {
}
updateLabel(target: 'header' | 'footer', id: string, value: string): void {
this.facade.updateNavLink(target, id, { label: value });
this.facade.updateNavLinkLabel(target, id, value);
}
updateRoute(target: 'header' | 'footer', id: string, value: string): void {