mirror of
https://github.com/Eugeny/tabby
synced 2024-11-14 17:07:15 +00:00
ref(connectable tab) ngOnInit logger
This commit is contained in:
parent
38b8702373
commit
37226f66e3
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue