mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-21 03:49:57 +00:00
parent
702d29b5b4
commit
952e8461e6
@ -9,11 +9,13 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
.list-group.mt-3(*ngIf='lastConnection')
|
.list-group.mt-3(*ngIf='lastConnection')
|
||||||
a.list-group-item.list-group-item-action((click)='connect(lastConnection)')
|
a.list-group-item.list-group-item-action.d-flex.align-items-center((click)='connect(lastConnection)')
|
||||||
i.fa.fa-fw.fa-history
|
i.fa.fa-fw.fa-history
|
||||||
span {{lastConnection.name}}
|
.mr-auto {{lastConnection.name}}
|
||||||
|
button.btn.btn-outline-danger.btn-sm((click)='clearLastConnection(); $event.stopPropagation()')
|
||||||
|
i.fa.fa-trash-o
|
||||||
|
|
||||||
.list-group.mt-3.connections-list
|
.list-group.mt-3.connections-list(*ngIf='childGroups.length')
|
||||||
ng-container(*ngFor='let group of childGroups')
|
ng-container(*ngFor='let group of childGroups')
|
||||||
.list-group-item.list-group-item-action.d-flex.align-items-center(
|
.list-group-item.list-group-item-action.d-flex.align-items-center(
|
||||||
(click)='groupCollapsed[group.name] = !groupCollapsed[group.name]'
|
(click)='groupCollapsed[group.name] = !groupCollapsed[group.name]'
|
||||||
|
@ -54,6 +54,11 @@ export class SSHModalComponent {
|
|||||||
this.connect(connection)
|
this.connect(connection)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearLastConnection () {
|
||||||
|
window.localStorage.lastConnection = null
|
||||||
|
this.lastConnection = null
|
||||||
|
}
|
||||||
|
|
||||||
connect (connection: SSHConnection) {
|
connect (connection: SSHConnection) {
|
||||||
this.close()
|
this.close()
|
||||||
this.ssh.connect(connection).catch(error => {
|
this.ssh.connect(connection).catch(error => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user