mirror of
https://github.com/Eugeny/tabby.git
synced 2024-09-11 13:13:59 +03:00
Fix linting issues
This commit is contained in:
parent
4a70ed4e73
commit
4c18e0d512
@ -258,7 +258,7 @@ export class AppHotkeyProvider extends HotkeyProvider {
|
||||
{
|
||||
id: 'toggle-sftp-pane',
|
||||
name: this.translate.instant('Toggle SFTP panel'),
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
constructor (
|
||||
|
@ -248,9 +248,9 @@ export class SFTPPanelComponent {
|
||||
this.editingPath = null
|
||||
}
|
||||
|
||||
togglePinSFTPPanel() {
|
||||
this.pinSFTPPanel = !this.pinSFTPPanel;
|
||||
this.pinStateChange.emit(this.pinSFTPPanel);
|
||||
togglePinSFTPPanel (): void {
|
||||
this.pinSFTPPanel = !this.pinSFTPPanel
|
||||
this.pinStateChange.emit(this.pinSFTPPanel)
|
||||
}
|
||||
|
||||
close (): void {
|
||||
|
@ -27,11 +27,11 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent<SSHProfile>
|
||||
sshSession: SSHSession|null = null
|
||||
session: SSHShellSession|null = null
|
||||
sftpPanelVisible = false
|
||||
isSftpPanelPinned = false;
|
||||
isSftpPanelPinned = false
|
||||
sftpPath = '/'
|
||||
enableToolbar = true
|
||||
activeKIPrompt: KeyboardInteractivePrompt|null = null
|
||||
@ViewChild(SFTPPanelComponent, { static: false }) sftpPanel: SFTPPanelComponent;
|
||||
@ViewChild(SFTPPanelComponent, { static: false }) sftpPanel: SFTPPanelComponent
|
||||
|
||||
constructor (
|
||||
injector: Injector,
|
||||
@ -223,25 +223,25 @@ export class SSHTabComponent extends ConnectableTerminalTabComponent<SSHProfile>
|
||||
}, 100)
|
||||
}
|
||||
|
||||
ngAfterViewChecked() {
|
||||
if (this.sftpPanel && !this.sftpPanel.pinStateChange.observers.length) {
|
||||
this.subscribeToPinState();
|
||||
ngAfterViewChecked (): void {
|
||||
if (!this.sftpPanel.pinStateChange.observers.length) {
|
||||
this.subscribeToPinState()
|
||||
}
|
||||
}
|
||||
|
||||
subscribeToPinState() {
|
||||
subscribeToPinState (): void {
|
||||
this.sftpPanel.pinStateChange.subscribe((isPinned: boolean) => {
|
||||
this.isSftpPanelPinned = isPinned;
|
||||
});
|
||||
this.isSftpPanelPinned = isPinned
|
||||
})
|
||||
this.sftpPanel.closed.subscribe(() => {
|
||||
this.isSftpPanelPinned = false;
|
||||
});
|
||||
this.isSftpPanelPinned = false
|
||||
})
|
||||
}
|
||||
|
||||
@HostListener('click')
|
||||
onClick(): void {
|
||||
onClick (): void {
|
||||
if (!this.isSftpPanelPinned) {
|
||||
this.sftpPanelVisible = false;
|
||||
this.sftpPanelVisible = false
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user