mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
close tab group with middle button
This commit is contained in:
parent
8e5584e90f
commit
b3a2197820
@ -387,7 +387,13 @@
|
||||
class:selected={draggingDbGroup
|
||||
? tabGroup.grpid == draggingDbGroupTarget?.grpid
|
||||
: 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)}
|
||||
style={$connectionColorFactory(
|
||||
tabGroup.tabs[0].props,
|
||||
|
Loading…
Reference in New Issue
Block a user