mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Remove style from folder in path if excluded
This commit is contained in:
parent
b705810d3d
commit
f8ac0362ec
1 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ import FolderNotesPlugin from 'src/main';
|
|||
import { Platform, Keymap } from 'obsidian';
|
||||
import { getFolderNote } from 'src/functions/folderNoteFunctions';
|
||||
import { handleFolderClick, handleViewHeaderClick } from './handleClick';
|
||||
import { getExcludedFolder } from 'src/ExcludeFolders/functions/folderFunctions';
|
||||
|
||||
export async function addObserver(plugin: FolderNotesPlugin) {
|
||||
plugin.observer = new MutationObserver((mutations: MutationRecord[]) => {
|
||||
|
|
@ -65,6 +66,8 @@ export async function addObserver(plugin: FolderNotesPlugin) {
|
|||
breadcrumb.setAttribute('old-name', folder.name || '');
|
||||
breadcrumb.innerText = folder.newName || '';
|
||||
}
|
||||
const excludedFolder = getExcludedFolder(plugin, folderPath, true)
|
||||
if (excludedFolder?.disableFolderNote) return;
|
||||
const folderNote = getFolderNote(plugin, folderPath);
|
||||
if (folderNote) {
|
||||
breadcrumb.classList.add('has-folder-note');
|
||||
|
|
|
|||
Loading…
Reference in a new issue