From b79912842750fe17815fd9917935633f798ffbb0 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 10 Jan 2019 12:44:07 +0100 Subject: [PATCH] fixed TerminalContextMenuProvider typing --- terminus-terminal/src/contextMenu.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terminus-terminal/src/contextMenu.ts b/terminus-terminal/src/contextMenu.ts index 0f919063..1774bb7e 100644 --- a/terminus-terminal/src/contextMenu.ts +++ b/terminus-terminal/src/contextMenu.ts @@ -3,7 +3,7 @@ import { ToastrService } from 'ngx-toastr' import { ConfigService } from 'terminus-core' import { UACService } from './services/uac.service' import { TerminalService } from './services/terminal.service' -import { TerminalTabComponent } from './components/terminalTab.component' +import { BaseTerminalTabComponent } from './components/baseTerminalTab.component' import { TerminalContextMenuItemProvider } from './api' @Injectable() @@ -19,14 +19,14 @@ export class NewTabContextMenu extends TerminalContextMenuItemProvider { super() } - async getItems (tab: TerminalTabComponent): Promise { + async getItems (tab: BaseTerminalTabComponent): Promise { let shells = await this.terminalService.shells$.toPromise() let items: Electron.MenuItemConstructorOptions[] = [ { label: 'New terminal', click: () => this.zone.run(() => { - this.terminalService.openTabWithOptions(tab.sessionOptions) + this.terminalService.openTabWithOptions((tab as any).sessionOptions) }) }, { @@ -84,7 +84,7 @@ export class CopyPasteContextMenu extends TerminalContextMenuItemProvider { super() } - async getItems (tab: TerminalTabComponent): Promise { + async getItems (tab: BaseTerminalTabComponent): Promise { return [ { label: 'Copy',