mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-08 12:29:53 +00:00
fixed saving ssh connections (fixes #436)
This commit is contained in:
parent
1a258f32b0
commit
2101c18657
@ -46,6 +46,7 @@ export class SSHSettingsTabComponent {
|
|||||||
modal.componentInstance.connection = Object.assign({}, connection)
|
modal.componentInstance.connection = Object.assign({}, connection)
|
||||||
modal.result.then(result => {
|
modal.result.then(result => {
|
||||||
Object.assign(connection, result)
|
Object.assign(connection, result)
|
||||||
|
this.config.store.ssh.connections = this.connections
|
||||||
this.config.save()
|
this.config.save()
|
||||||
this.refresh()
|
this.refresh()
|
||||||
})
|
})
|
||||||
@ -77,6 +78,7 @@ export class SSHSettingsTabComponent {
|
|||||||
for (let connection of this.connections.filter(x => x.group === group.name)) {
|
for (let connection of this.connections.filter(x => x.group === group.name)) {
|
||||||
connection.group = result
|
connection.group = result
|
||||||
}
|
}
|
||||||
|
this.config.store.ssh.connections = this.connections
|
||||||
this.config.save()
|
this.config.save()
|
||||||
this.refresh()
|
this.refresh()
|
||||||
}
|
}
|
||||||
@ -102,6 +104,7 @@ export class SSHSettingsTabComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
refresh () {
|
refresh () {
|
||||||
|
this.connections = this.config.store.ssh.connections
|
||||||
this.childGroups = []
|
this.childGroups = []
|
||||||
|
|
||||||
for (let connection of this.connections) {
|
for (let connection of this.connections) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user