mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-30 00:09:54 +00:00
ref(connectable tab) on frontend ready
This commit is contained in:
parent
38302622b8
commit
bd4b11813c
@ -53,11 +53,6 @@ export class SerialTabComponent extends ConnectableTerminalTabComponent<SerialPr
|
||||
})
|
||||
}
|
||||
|
||||
protected onFrontendReady (): void {
|
||||
this.initializeSession()
|
||||
super.onFrontendReady()
|
||||
}
|
||||
|
||||
async initializeSession () {
|
||||
super.initializeSession()
|
||||
|
||||
|
@ -71,11 +71,6 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent<SSHProfile>
|
||||
super.ngOnInit()
|
||||
}
|
||||
|
||||
protected onFrontendReady (): void {
|
||||
this.initializeSession()
|
||||
super.onFrontendReady()
|
||||
}
|
||||
|
||||
async setupOneSession (injector: Injector, profile: SSHProfile, multiplex = true): Promise<SSHSession> {
|
||||
let session = await this.sshMultiplexer.getSession(profile)
|
||||
if (!multiplex || !session || !profile.options.reuseSession) {
|
||||
|
@ -37,11 +37,6 @@ export class TelnetTabComponent extends ConnectableTerminalTabComponent<TelnetPr
|
||||
super.ngOnInit()
|
||||
}
|
||||
|
||||
protected onFrontendReady (): void {
|
||||
this.initializeSession()
|
||||
super.onFrontendReady()
|
||||
}
|
||||
|
||||
protected onSessionDestroyed (): void {
|
||||
if (this.frontend) {
|
||||
// Session was closed abruptly
|
||||
|
@ -25,6 +25,11 @@ export abstract class ConnectableTerminalTabComponent<P extends BaseTerminalProf
|
||||
})
|
||||
}
|
||||
|
||||
protected onFrontendReady (): void {
|
||||
this.initializeSession()
|
||||
super.onFrontendReady()
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize Connectable Session.
|
||||
* Set reconnectOffered to false
|
||||
|
Loading…
x
Reference in New Issue
Block a user