fix: add missing state. prefix to all bare state variable references across all modules
This commit is contained in:
@@ -98,7 +98,7 @@ function _humanizeDelta(mtime) {
|
||||
}
|
||||
|
||||
function _refreshRecentTimestamps() {
|
||||
if (activeSidebarTab !== "recent" || !_recentFilesCache.length) return;
|
||||
if (state.activeSidebarTab !== "recent" || !_recentFilesCache.length) return;
|
||||
const items = document.querySelectorAll(".recent-item");
|
||||
items.forEach((item, i) => {
|
||||
if (i < _recentFilesCache.length) {
|
||||
@@ -165,7 +165,7 @@ function switchSidebarTab(tab) {
|
||||
const placeholders = { vaults: "Filtrer fichiers...", tags: "Filtrer tags...", recent: "" };
|
||||
filterInput.placeholder = placeholders[tab] || "";
|
||||
}
|
||||
const query = filterInput ? (sidebarFilterCaseSensitive ? filterInput.value.trim() : filterInput.value.trim().toLowerCase()) : "";
|
||||
const query = filterInput ? (state.sidebarFilterCaseSensitive ? filterInput.value.trim() : filterInput.value.trim().toLowerCase()) : "";
|
||||
if (query) {
|
||||
if (tab === "vaults") performTreeSearch(query);
|
||||
else if (tab === "tags") filterTagCloud(query);
|
||||
@@ -653,7 +653,7 @@ async function loadHiddenFilesSettings() {
|
||||
function renderHiddenFilesSettings(container, allSettings) {
|
||||
container.innerHTML = "";
|
||||
|
||||
if (!allVaults || state.allVaults.length === 0) {
|
||||
if (!state.allVaults || state.allVaults.length === 0) {
|
||||
container.innerHTML = '<div style="padding:12px;color:var(--text-muted)">Aucun vault configuré</div>';
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user