mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-25 03:22:58 +03:00
ssh: added a reconnect button (fixes #761)
This commit is contained in:
parent
f545b3eacf
commit
b07a2113d2
@ -1,10 +1,15 @@
|
||||
.ssh-tab-toolbar
|
||||
.btn.btn-outline-secondary.reveal-button
|
||||
i.fas.fa-ellipsis-h
|
||||
.toolbar
|
||||
i.fas.fa-circle.text-success.mr-2(*ngIf='session && session.open')
|
||||
i.fas.fa-circle.text-danger.mr-2(*ngIf='!session || !session.open')
|
||||
.toolbar(*ngIf='session', [class.show]='!session.open')
|
||||
i.fas.fa-circle.text-success.mr-2(*ngIf='session.open')
|
||||
i.fas.fa-circle.text-danger.mr-2(*ngIf='!session.open')
|
||||
strong.mr-auto(*ngIf='session') {{session.connection.user}}@{{session.connection.host}}:{{session.connection.port}}
|
||||
button.btn.btn-secondary((click)='showPortForwarding()')
|
||||
|
||||
button.btn.btn-secondary((click)='showPortForwarding()', *ngIf='session.open')
|
||||
i.fas.fa-plug
|
||||
span Ports
|
||||
|
||||
button.btn.btn-info((click)='reconnect()', *ngIf='!session.open')
|
||||
i.fas.fa-reload
|
||||
span Reconnect
|
||||
|
@ -55,5 +55,15 @@
|
||||
pointer-events: all;
|
||||
}
|
||||
}
|
||||
|
||||
&.show {
|
||||
.reveal-button {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -75,4 +75,8 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
|
||||
const modal = this.ngbModal.open(SSHPortForwardingModalComponent).componentInstance as SSHPortForwardingModalComponent
|
||||
modal.session = this.session
|
||||
}
|
||||
|
||||
reconnect () {
|
||||
this.initializeSession()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user