This commit is contained in:
Clem Fern
2023-05-12 19:46:43 +02:00
parent 312b365851
commit 38302622b8
5 changed files with 9 additions and 9 deletions

View File

@@ -784,7 +784,7 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
})
this.attachSessionHandler(this.session.destroyed$, () => {
this.onSessionDestroyed()
this.onSessionDestroyed()
})
this.attachSessionHandler(this.session.oscProcessor.copyRequested$, content => {
@@ -796,7 +796,7 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
/**
* Method called when session is destroyed. Set the session to null
*/
protected onSessionDestroyed() {
protected onSessionDestroyed (): void {
this.setSession(null)
}

View File

@@ -26,7 +26,7 @@ export abstract class ConnectableTerminalTabComponent<P extends BaseTerminalProf
}
/**
* Initialize Connectable Session.
* Initialize Connectable Session.
* Set reconnectOffered to false
*/
async initializeSession (): Promise<void> {
@@ -36,7 +36,7 @@ export abstract class ConnectableTerminalTabComponent<P extends BaseTerminalProf
/**
* Method called when session is destroyed. Handle the tab behavior on session end for connectable tab
*/
protected onSessionDestroyed() {
protected onSessionDestroyed (): void {
super.onSessionDestroyed()
if (this.frontend) {
@@ -47,12 +47,12 @@ export abstract class ConnectableTerminalTabComponent<P extends BaseTerminalProf
}
}
}
/**
* Offering reconnection to the user if it hasn't been done yet.
* Set reconnectOffered to true
*/
offerReconnection () {
offerReconnection (): void {
if (!this.reconnectOffered) {
this.reconnectOffered = true
this.write(this.translate.instant(_('Press any key to reconnect')) + '\r\n')