1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-25 19:42:42 +03:00

Fix Typings

This commit is contained in:
Thomas Peterson 2022-03-29 18:43:32 +02:00
parent e223effe98
commit e2a74a2f6e
2 changed files with 6 additions and 10 deletions

View File

@ -21,12 +21,8 @@ export class SFTPCreateDirectoryModalComponent extends BaseComponent {
super() super()
} }
async ngOnInit (): Promise<void> {
}
create (): void { create (): void {
this.createDirectory(this.item.directory); this.createDirectory(this.item.directory)
} }
cancel (): void { cancel (): void {
this.modalInstance.close() this.modalInstance.close()
@ -34,9 +30,9 @@ export class SFTPCreateDirectoryModalComponent extends BaseComponent {
async createDirectory (currentDirectory: string): Promise<void> { async createDirectory (currentDirectory: string): Promise<void> {
this.sftp.mkdir(path.join(currentDirectory, this.directoryName)).finally(() => { this.sftp.mkdir(path.join(currentDirectory, this.directoryName)).finally(() => {
this.panel.navigate(path.join(currentDirectory, this.directoryName)); this.panel.navigate(path.join(currentDirectory, this.directoryName))
this.cancel(); this.cancel()
}); })
} }
} }

View File

@ -25,7 +25,7 @@ export class CommonSFTPContextMenu extends SFTPContextMenuItemProvider {
return [ return [
{ {
click: async () => { click: async () => {
await this.createDirectory(item, panel); await this.createDirectory(item, panel)
}, },
label: this.translate.instant('Create Directory'), label: this.translate.instant('Create Directory'),
}, },