diff src/app/app.component.html @ 48:af0b4b05311c

Guard against extraction when no audio is loaded.
author Lucas Thompson <dev@lucas.im>
date Tue, 06 Dec 2016 11:03:38 +0000
parents 933c64ebcd13
children 92c139e16b51
line wrap: on
line diff
--- a/src/app/app.component.html	Mon Dec 05 16:57:34 2016 +0000
+++ b/src/app/app.component.html	Tue Dec 06 11:03:38 2016 +0000
@@ -22,7 +22,9 @@
         <app-playback-control class="playback-content"></app-playback-control>
       </md-tab>
       <md-tab label="Feature Extraction">
-        <app-feature-extraction-menu (requestOutput)="extractFeatures($event)"></app-feature-extraction-menu>
+        <app-feature-extraction-menu
+          (requestOutput)="extractFeatures($event)"
+          [disabled]="!hasAudioBuffer"></app-feature-extraction-menu>
       </md-tab>
     </md-tab-group>
   </md-sidenav>