mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-27 06:00:26 +08:00
ref(connectable tab) ngOnInit logger
This commit is contained in:
parent
38b8702373
commit
37226f66e3
@ -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 New Issue
Block a user