changeset 399:6fe8ef9687de

Who am I kidding? Graduate the bodge.
author Lucas Thompson <dev@lucas.im>
date Fri, 02 Jun 2017 17:24:33 +0100
parents 75cb17f28277
children e06b62d949de
files src/app/analysis-item/analysis-item.component.html src/app/analysis-item/analysis-item.component.ts
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/app/analysis-item/analysis-item.component.html	Fri Jun 02 16:51:36 2017 +0100
+++ b/src/app/analysis-item/analysis-item.component.html	Fri Jun 02 17:24:33 2017 +0100
@@ -14,7 +14,7 @@
       <ng-template [ngIf]="!isLoading()">
         <ng-template [ngIf]="isActive && isAudioItem()">
           <ugly-live-play-head
-            [timeToPixel]="DOES_NOT_BELONG_HERE"
+            [timeToPixel]="timeToPixel"
             [colour]="'#c33c54'"
           >
           </ugly-live-play-head>
--- a/src/app/analysis-item/analysis-item.component.ts	Fri Jun 02 16:51:36 2017 +0100
+++ b/src/app/analysis-item/analysis-item.component.ts	Fri Jun 02 17:24:33 2017 +0100
@@ -92,12 +92,12 @@
   private hasProgressOnInit = false;
 
 
-  // TODO move
-  private DOES_NOT_BELONG_HERE: TimePixelMapper;
+  // TODO move / re-think - naivePagingMapper feels like a big ol' bodge
+  private timeToPixel: TimePixelMapper;
 
   ngOnInit(): void {
     this.hasProgressOnInit = this.item.progress != null;
-    this.DOES_NOT_BELONG_HERE = naivePagingMapper(this.timeline);
+    this.timeToPixel = naivePagingMapper(this.timeline);
   }
 
   isLoading(): boolean {