mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 14:03:57 +00:00
close tab group with middle button
This commit is contained in:
@@ -387,7 +387,13 @@
|
|||||||
class:selected={draggingDbGroup
|
class:selected={draggingDbGroup
|
||||||
? tabGroup.grpid == draggingDbGroupTarget?.grpid
|
? tabGroup.grpid == draggingDbGroupTarget?.grpid
|
||||||
: tabGroup.tabDbKey == currentDbKey}
|
: tabGroup.tabDbKey == currentDbKey}
|
||||||
on:click={() => handleSetDb(tabGroup.tabs[0].props)}
|
on:mouseup={e => {
|
||||||
|
if (e.button == 1) {
|
||||||
|
closeMultipleTabs(tab => tabGroup.tabs.find(x => x.tabid == tab.tabid));
|
||||||
|
} else {
|
||||||
|
handleSetDb(tabGroup.tabs[0].props);
|
||||||
|
}
|
||||||
|
}}
|
||||||
use:contextMenu={getDatabaseContextMenu(tabGroup.tabs)}
|
use:contextMenu={getDatabaseContextMenu(tabGroup.tabs)}
|
||||||
style={$connectionColorFactory(
|
style={$connectionColorFactory(
|
||||||
tabGroup.tabs[0].props,
|
tabGroup.tabs[0].props,
|
||||||
|
|||||||
Reference in New Issue
Block a user