Refactor folder relocation logic in renderer.js
This commit is contained in:
@@ -528,8 +528,13 @@ folders.forEach(folderObj => {
|
|||||||
const selector = `[data-folder-id="${encodeURIComponent(folderObj.path)}"]`;
|
const selector = `[data-folder-id="${encodeURIComponent(folderObj.path)}"]`;
|
||||||
const li = document.querySelector(selector);
|
const li = document.querySelector(selector);
|
||||||
if (li) {
|
if (li) {
|
||||||
li.classList.toggle('needs-relocation', folderObj.needsRelocation);
|
if (folderObj.needsRelocation) {
|
||||||
// etc.
|
li.classList.add('needs-relocation');
|
||||||
|
// evtl. !-Icon einblenden
|
||||||
|
} else {
|
||||||
|
li.classList.remove('needs-relocation');
|
||||||
|
// evtl. !-Icon ausblenden
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user