mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 11:56:00 +00:00
connect from connection tab
This commit is contained in:
@@ -183,3 +183,14 @@ export function groupTabs(tabs: any[]) {
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
export function closeTabWithNoHistory(tabid) {
|
||||
openedTabs.update(tabs => {
|
||||
const res = tabs.filter(x => x.tabid != tabid);
|
||||
const selectedIndex = _.findLastIndex(res, x => x.closedTime == null);
|
||||
return res.map((x, index) => ({
|
||||
...x,
|
||||
selected: index == selectedIndex,
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user