fix(core-app): CB-921 tab selection event

This commit is contained in:
Wroud
2021-07-05 17:47:32 +03:00
parent 7c7b0c85d9
commit ea24857f9b
2 changed files with 2 additions and 2 deletions
@@ -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> {