fix custom nav dialog restore default i18n issue

This commit is contained in:
pa
2026-03-12 21:32:20 +09:00
parent 76ff4844db
commit 6c8ed126b1
3 changed files with 215 additions and 0 deletions

View File

@@ -192,6 +192,7 @@
type: 'folder',
id: entry.id,
name: entry.name,
nameKey: entry.nameKey || null,
icon: entry.icon,
items: Array.isArray(entry.items) ? [...entry.items] : []
};
@@ -667,6 +668,7 @@
const entry = localLayout.value.find((e) => e.type === 'folder' && e.id === folderEditor.editingId);
if (entry) {
entry.name = folderEditor.data.name.trim();
entry.nameKey = null;
entry.icon = folderEditor.data.icon?.trim() || DEFAULT_FOLDER_ICON;
localLayout.value = [...localLayout.value];
}
@@ -675,6 +677,7 @@
type: 'folder',
id: folderEditor.data.id,
name: folderEditor.data.name.trim(),
nameKey: null,
icon: folderEditor.data.icon?.trim() || DEFAULT_FOLDER_ICON,
items: []
});