From b3abe3232160a62e629a505ec64d8532a6cc070e Mon Sep 17 00:00:00 2001 From: Domain Date: Tue, 9 Oct 2018 11:24:15 +0800 Subject: [PATCH] fix #456 --- terminus-ssh/src/components/sshModal.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terminus-ssh/src/components/sshModal.component.ts b/terminus-ssh/src/components/sshModal.component.ts index 657b439d..1d2e3855 100644 --- a/terminus-ssh/src/components/sshModal.component.ts +++ b/terminus-ssh/src/components/sshModal.component.ts @@ -58,6 +58,10 @@ export class SSHModalComponent { this.close() this.ssh.connect(connection).catch(error => { this.toastr.error(`Could not connect: ${error}`) + }).then(() => { + setTimeout(() => { + this.app.activeTab.emitFocused() + }) }) }