mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
commit
494d159107
1 changed files with 6 additions and 2 deletions
|
|
@ -202,8 +202,12 @@ async function updateFolderNamesInPath(
|
||||||
viewHeaderTitle.classList.remove('path-is-folder-note');
|
viewHeaderTitle.classList.remove('path-is-folder-note');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!folderNote) return;
|
if (!folderNote) {
|
||||||
if (folderNote) breadcrumb.classList.add('has-folder-note');
|
breadcrumb.classList.remove('has-folder-note');
|
||||||
|
breadcrumb.removeAttribute('data-path');
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
breadcrumb.classList.add('has-folder-note');
|
||||||
breadcrumb?.setAttribute('data-path', path.slice(0, -TRAILING_SLASH_LENGTH));
|
breadcrumb?.setAttribute('data-path', path.slice(0, -TRAILING_SLASH_LENGTH));
|
||||||
if (!breadcrumb.onclick) {
|
if (!breadcrumb.onclick) {
|
||||||
breadcrumb.addEventListener('click', (e) => {
|
breadcrumb.addEventListener('click', (e) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue