From 2101c186575b97584599414ecf1dd4ae12273a32 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 5 Jan 2019 15:03:31 +0100 Subject: [PATCH] fixed saving ssh connections (fixes #436) --- terminus-ssh/src/components/sshSettingsTab.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminus-ssh/src/components/sshSettingsTab.component.ts b/terminus-ssh/src/components/sshSettingsTab.component.ts index a1f3591e..0fef7afe 100644 --- a/terminus-ssh/src/components/sshSettingsTab.component.ts +++ b/terminus-ssh/src/components/sshSettingsTab.component.ts @@ -46,6 +46,7 @@ export class SSHSettingsTabComponent { modal.componentInstance.connection = Object.assign({}, connection) modal.result.then(result => { Object.assign(connection, result) + this.config.store.ssh.connections = this.connections this.config.save() this.refresh() }) @@ -77,6 +78,7 @@ export class SSHSettingsTabComponent { for (let connection of this.connections.filter(x => x.group === group.name)) { connection.group = result } + this.config.store.ssh.connections = this.connections this.config.save() this.refresh() } @@ -102,6 +104,7 @@ export class SSHSettingsTabComponent { } refresh () { + this.connections = this.config.store.ssh.connections this.childGroups = [] for (let connection of this.connections) {