added an option to add password from the connection properties (fixes #637)

This commit is contained in:
Eugene Pankov
2019-06-18 23:48:20 +02:00
parent 77058c0472
commit db3b8cc718
6 changed files with 59 additions and 29 deletions

View File

@@ -43,7 +43,7 @@ export class SSHSettingsTabComponent {
}
editConnection (connection: SSHConnection) {
const modal = this.ngbModal.open(EditConnectionModalComponent)
const modal = this.ngbModal.open(EditConnectionModalComponent, { size: 'lg' })
modal.componentInstance.connection = Object.assign({}, connection)
modal.result.then(result => {
Object.assign(connection, result)
@@ -77,7 +77,7 @@ export class SSHSettingsTabComponent {
modal.result.then(result => {
if (result) {
for (const connection of this.connections.filter(x => x.group === group.name)) {
connection.group = result
connection.group = result.value
}
this.config.store.ssh.connections = this.connections
this.config.save()