profile and SSH connection colors (fixes #954)

This commit is contained in:
Eugene Pankov
2020-01-01 01:04:41 +01:00
parent a8d5cf469e
commit 2b5f623b50
7 changed files with 45 additions and 4 deletions

View File

@@ -173,6 +173,17 @@ export class AppService {
}
}
getParentTab (tab: BaseTabComponent): SplitTabComponent|null {
for (const topLevelTab of this.tabs) {
if (topLevelTab instanceof SplitTabComponent) {
if (topLevelTab.getAllTabs().includes(tab)) {
return topLevelTab
}
}
}
return null
}
/** Switches between the current tab and the previously active one */
toggleLastTab () {
if (!this.lastTabIndex || this.lastTabIndex >= this.tabs.length) {