fix: removeTagFilter non importé + null-guard sur _tabBar
This commit is contained in:
parent
fe1a2be364
commit
8da6e176f0
@ -5,7 +5,7 @@ import { safeCreateIcons } from './utils.js';
|
|||||||
import { showLoading, el, hideProgressBar, showWelcome, highlightSearchText } from './viewer.js';
|
import { showLoading, el, hideProgressBar, showWelcome, highlightSearchText } from './viewer.js';
|
||||||
import { _getEffective } from './config.js';
|
import { _getEffective } from './config.js';
|
||||||
import { TabManager, showToast } from './ui.js';
|
import { TabManager, showToast } from './ui.js';
|
||||||
import { addTagFilter, buildSearchResultsHeader, shouldDisplayPath } from './sidebar.js';
|
import { addTagFilter, buildSearchResultsHeader, shouldDisplayPath, removeTagFilter } from './sidebar.js';
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Search History Service (localStorage, LIFO, max 50, dedup)
|
// Search History Service (localStorage, LIFO, max 50, dedup)
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|||||||
@ -1094,4 +1094,4 @@ function searchByTag(tag) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export { initVaultContext, setSelectedVaultContext, syncVaultSelectors, shouldDisplayPath, loadVaults, initSidebarFilter, TagFilterService, loadTags, scrollTreeItemIntoView, refreshSidebarForContext, focusVaultInSidebar, refreshTagsForContext, syncActiveFileTreeItem, searchByTag, addTagFilter, buildSearchResultsHeader };
|
export { initVaultContext, setSelectedVaultContext, syncVaultSelectors, shouldDisplayPath, loadVaults, initSidebarFilter, TagFilterService, loadTags, scrollTreeItemIntoView, refreshSidebarForContext, focusVaultInSidebar, refreshTagsForContext, syncActiveFileTreeItem, searchByTag, addTagFilter, buildSearchResultsHeader, removeTagFilter };
|
||||||
|
|||||||
@ -1978,7 +1978,7 @@ export const TabManager = {
|
|||||||
if (this._tabs.length === 0) {
|
if (this._tabs.length === 0) {
|
||||||
this._activeTabId = null;
|
this._activeTabId = null;
|
||||||
this._showDashboard();
|
this._showDashboard();
|
||||||
this._tabBar.hidden = true;
|
if (this._tabBar) this._tabBar.hidden = true;
|
||||||
} else if (this._activeTabId === tabId) {
|
} else if (this._activeTabId === tabId) {
|
||||||
// Activate adjacent tab
|
// Activate adjacent tab
|
||||||
const newIdx = Math.min(idx, this._tabs.length - 1);
|
const newIdx = Math.min(idx, this._tabs.length - 1);
|
||||||
@ -1995,7 +1995,7 @@ export const TabManager = {
|
|||||||
this._dirtyTabs.clear();
|
this._dirtyTabs.clear();
|
||||||
this._activeTabId = null;
|
this._activeTabId = null;
|
||||||
this._showDashboard();
|
this._showDashboard();
|
||||||
this._tabBar.hidden = true;
|
if (this._tabBar) this._tabBar.hidden = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
/** Close tabs to the right */
|
/** Close tabs to the right */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user