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