mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-25 11:33:35 +03:00
Fix Typings
This commit is contained in:
parent
e223effe98
commit
e2a74a2f6e
@ -21,12 +21,8 @@ export class SFTPCreateDirectoryModalComponent extends BaseComponent {
|
||||
super()
|
||||
}
|
||||
|
||||
async ngOnInit (): Promise<void> {
|
||||
|
||||
}
|
||||
|
||||
create (): void {
|
||||
this.createDirectory(this.item.directory);
|
||||
this.createDirectory(this.item.directory)
|
||||
}
|
||||
cancel (): void {
|
||||
this.modalInstance.close()
|
||||
@ -34,9 +30,9 @@ export class SFTPCreateDirectoryModalComponent extends BaseComponent {
|
||||
|
||||
async createDirectory (currentDirectory: string): Promise<void> {
|
||||
this.sftp.mkdir(path.join(currentDirectory, this.directoryName)).finally(() => {
|
||||
this.panel.navigate(path.join(currentDirectory, this.directoryName));
|
||||
this.cancel();
|
||||
});
|
||||
this.panel.navigate(path.join(currentDirectory, this.directoryName))
|
||||
this.cancel()
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export class CommonSFTPContextMenu extends SFTPContextMenuItemProvider {
|
||||
return [
|
||||
{
|
||||
click: async () => {
|
||||
await this.createDirectory(item, panel);
|
||||
await this.createDirectory(item, panel)
|
||||
},
|
||||
label: this.translate.instant('Create Directory'),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user