mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-25 19:42:42 +03:00
Fix Typings
This commit is contained in:
parent
e223effe98
commit
e2a74a2f6e
@ -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()
|
||||||
});
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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'),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user