add prefix "_" to "named" IDs

This commit is contained in:
zadam
2022-12-21 16:11:00 +01:00
parent 1b24276a4a
commit 724f99f17c
49 changed files with 215 additions and 192 deletions

View File

@@ -64,15 +64,15 @@ class NoteContext extends Component {
}
if (this.hoistedNoteId === 'root'
&& this.notePath.startsWith("root/hidden")
&& this.notePath.startsWith("root/_hidden")
&& !this.note.hasLabel("keepCurrentHoisting")
) {
// hidden subtree displays only when hoisted so it doesn't make sense to keep root as hoisted note
let hoistedNoteId = 'hidden';
let hoistedNoteId = '_hidden';
if (this.note.isLaunchBarConfig()) {
hoistedNoteId = 'lbRoot';
hoistedNoteId = '_lbRoot';
} else if (this.note.isOptions()) {
hoistedNoteId = 'options';
}