mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(core-app): CB-921 tab selection event
This commit is contained in:
+1
@@ -117,6 +117,7 @@ export class ConnectionSelectorController {
|
||||
currentConnectionIcon: computed,
|
||||
objectContainerSelectionDisabled: computed,
|
||||
currentObjectContainerIcon: computed,
|
||||
isObjectContainerSelectorVisible: computed,
|
||||
});
|
||||
|
||||
this.connectionMenu = new ComputedMenuItemModel({
|
||||
|
||||
@@ -146,13 +146,12 @@ export class NavigationTabsService {
|
||||
this.userTabsState.history = this.userTabsState.history.filter(id => id !== tabId);
|
||||
this.userTabsState.history.unshift(tabId);
|
||||
this.userTabsState.currentId = tabId;
|
||||
this.tabSelectSubject.next(tab);
|
||||
}
|
||||
|
||||
if (!skipHandlers) {
|
||||
await this.callHandlerCallback(tab, handler => handler.onSelect);
|
||||
}
|
||||
|
||||
this.tabSelectSubject.next(tab);
|
||||
}
|
||||
|
||||
async closeTab(tabId: string, skipHandlers?: boolean): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user