Mercurial > hg > ugly-duckling
changeset 353:02e7be2daf31
fix playhead regression. TypeScript doesn't seem to catch errors for non existent properties used as values for attribute directives.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 26 May 2017 13:10:18 +0100 |
parents | 2453773eddd6 |
children | a9ce5516c17d |
files | src/app/app.component.html src/app/app.component.ts |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/app.component.html Fri May 26 13:04:07 2017 +0100 +++ b/src/app/app.component.html Fri May 26 13:10:18 2017 +0100 @@ -34,7 +34,7 @@ </md-sidenav> <ugly-notebook-feed [analyses]="analyses.toIterable()" - [rootAudioUri]="rootAudioUri" + [rootAudioUri]="rootAudioItem.uri" [onSeek]="onSeek"></ugly-notebook-feed> </md-sidenav-container> </div>
--- a/src/app/app.component.ts Fri May 26 13:04:07 2017 +0100 +++ b/src/app/app.component.ts Fri May 26 13:10:18 2017 +0100 @@ -9,7 +9,8 @@ import {MdIconRegistry} from '@angular/material'; import {Subscription} from 'rxjs/Subscription'; import { - AnalysisItem, isRootAudioItem, + AnalysisItem, + isRootAudioItem, Item, PendingAnalysisItem, PendingRootAudioItem, RootAudioItem } from './analysis-item/analysis-item.component'; import {OnSeekHandler} from './playhead/PlayHeadHelpers'; @@ -89,6 +90,7 @@ this.nRecordings = 0; this.countingId = 0; this.onSeek = (time) => this.audioService.seekTo(time); + this.rootAudioItem = {} as any; // TODO eugh iconRegistry.addSvgIcon( 'duck',