mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
ref(connectable tab) ngOnInit logger
This commit is contained in:
@@ -27,8 +27,6 @@ export class SerialTabComponent extends ConnectableTerminalTabComponent<SerialPr
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit () {
|
ngOnInit () {
|
||||||
this.logger = this.log.create('terminalTab')
|
|
||||||
|
|
||||||
this.subscribeUntilDestroyed(this.hotkeys.hotkey$, hotkey => {
|
this.subscribeUntilDestroyed(this.hotkeys.hotkey$, hotkey => {
|
||||||
if (!this.hasFocus) {
|
if (!this.hasFocus) {
|
||||||
return
|
return
|
||||||
|
@@ -44,8 +44,6 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent<SSHProfile>
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit (): void {
|
ngOnInit (): void {
|
||||||
this.logger = this.log.create('terminalTab')
|
|
||||||
|
|
||||||
this.subscribeUntilDestroyed(this.hotkeys.hotkey$, hotkey => {
|
this.subscribeUntilDestroyed(this.hotkeys.hotkey$, hotkey => {
|
||||||
if (!this.hasFocus) {
|
if (!this.hasFocus) {
|
||||||
return
|
return
|
||||||
|
@@ -26,8 +26,6 @@ export class TelnetTabComponent extends ConnectableTerminalTabComponent<TelnetPr
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit (): void {
|
ngOnInit (): void {
|
||||||
this.logger = this.log.create('telnetTab')
|
|
||||||
|
|
||||||
this.subscribeUntilDestroyed(this.hotkeys.hotkey$, hotkey => {
|
this.subscribeUntilDestroyed(this.hotkeys.hotkey$, hotkey => {
|
||||||
if (this.hasFocus && hotkey === 'restart-telnet-session') {
|
if (this.hasFocus && hotkey === 'restart-telnet-session') {
|
||||||
this.reconnect()
|
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 {
|
protected onFrontendReady (): void {
|
||||||
this.initializeSession()
|
this.initializeSession()
|
||||||
super.onFrontendReady()
|
super.onFrontendReady()
|
||||||
|
Reference in New Issue
Block a user