report progress from the console commands in tab headers and taskbar

This commit is contained in:
Eugene Pankov
2018-08-25 00:22:43 +02:00
parent c9dde2e29c
commit 64f670bd86
7 changed files with 44 additions and 1 deletions

View File

@@ -17,7 +17,9 @@ export class TabHeaderComponent {
@Input() @HostBinding('class.active') active: boolean
@Input() @HostBinding('class.has-activity') hasActivity: boolean
@Input() tab: BaseTabComponent
@Input() progress: number
@ViewChild('handle') handle: ElementRef
private contextMenu: any
constructor (
@@ -74,6 +76,9 @@ export class TabHeaderComponent {
if (this.hostApp.platform === Platform.macOS) {
this.parentDraggable.setDragHandle(this.handle.nativeElement)
}
this.tab.progress$.subscribe(progress => {
this.progress = progress
})
}
@HostListener('dblclick') onDoubleClick (): void {