mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-04 11:59:54 -06:00
context menu on tab and "close all except for this tab"
This commit is contained in:
@@ -277,6 +277,14 @@
|
||||
this.setupDraggabilly()
|
||||
}
|
||||
|
||||
removeAllTabsExceptForThis(remainingTabEl) {
|
||||
for (const tabEl of this.tabEls) {
|
||||
if (remainingTabEl !== tabEl) {
|
||||
this.removeTab(tabEl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
updateTab(tabEl, tabProperties) {
|
||||
tabEl.querySelector('.chrome-tab-title').textContent = tabProperties.title
|
||||
|
||||
|
||||
Reference in New Issue
Block a user