ref(connectable tab) ngOnInit logger

This commit is contained in:
Clem Fern 2023-05-12 20:27:58 +02:00
parent 38b8702373
commit 37226f66e3
4 changed files with 6 additions and 6 deletions

View File

@ -27,8 +27,6 @@ export class SerialTabComponent extends ConnectableTerminalTabComponent<SerialPr
}
ngOnInit () {
this.logger = this.log.create('terminalTab')
this.subscribeUntilDestroyed(this.hotkeys.hotkey$, hotkey => {
if (!this.hasFocus) {
return

View File

@ -44,8 +44,6 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent<SSHProfile>
}
ngOnInit (): void {
this.logger = this.log.create('terminalTab')
this.subscribeUntilDestroyed(this.hotkeys.hotkey$, hotkey => {
if (!this.hasFocus) {
return

View File

@ -26,8 +26,6 @@ export class TelnetTabComponent extends ConnectableTerminalTabComponent<TelnetPr
}
ngOnInit (): void {
this.logger = this.log.create('telnetTab')
this.subscribeUntilDestroyed(this.hotkeys.hotkey$, hotkey => {
if (this.hasFocus && hotkey === 'restart-telnet-session') {
this.reconnect()

View File

@ -27,6 +27,12 @@ export abstract class ConnectableTerminalTabComponent<P extends BaseTerminalProf
})
}
ngOnInit (): void {
this.logger = this.log.create(`${this.profile.type}Tab`)
super.ngOnInit()
}
protected onFrontendReady (): void {
this.initializeSession()
super.onFrontendReady()