mirror of
https://github.com/Fabio286/antares.git
synced 2025-01-27 23:59:38 +01:00
feat: middle click to close tabs
This commit is contained in:
parent
196a3e0185
commit
256ec76588
@ -31,6 +31,7 @@
|
||||
class="tab-item"
|
||||
:class="{'active': selectedTab === tab.uid}"
|
||||
@click="selectTab({uid: workspace.uid, tab: tab.uid})"
|
||||
@mousedown.middle="closeTab(tab.uid)"
|
||||
>
|
||||
<a>
|
||||
<span>
|
||||
@ -132,6 +133,7 @@ export default {
|
||||
this.newTab(this.connection.uid);
|
||||
},
|
||||
closeTab (tUid) {
|
||||
if (this.queryTabs.length === 1) return;
|
||||
this.removeTab({ uid: this.connection.uid, tab: tUid });
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user