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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user