an option to clear last ssh quick connection (fixes #435, fixes #493)

This commit is contained in:
Eugene Pankov
2018-11-11 13:45:47 +01:00
parent 702d29b5b4
commit 952e8461e6
2 changed files with 10 additions and 3 deletions

View File

@@ -54,6 +54,11 @@ export class SSHModalComponent {
this.connect(connection)
}
clearLastConnection () {
window.localStorage.lastConnection = null
this.lastConnection = null
}
connect (connection: SSHConnection) {
this.close()
this.ssh.connect(connection).catch(error => {