view src/app/app.component.html @ 431:686cf74aa0a2

Allow clicking whole list item to extract. Kinda makes the plus button redundant. Add guard in extract method.
author Lucas Thompson <dev@lucas.im>
date Wed, 07 Jun 2017 08:46:30 +0100
parents b0415f8837d9
children a1562ee60ed4
line wrap: on
line source
<div class="ugly-container">
  <div class="ugly-header">
    <md-toolbar color="primary">
      <md-icon svgIcon="duck"></md-icon>

      <span class="ugly-toolbar-filler"></span>

      <ugly-playback-control></ugly-playback-control>
      <ugly-recording-control
        (finishedRecording)="onFileOpened($event)"
      ></ugly-recording-control>

      <!-- This fills the remaining space of the current row -->
      <span class="ugly-toolbar-filler"></span>


      <ugly-audio-file-open
        (fileOpened)="onFileOpened($event)"
      ></ugly-audio-file-open>
      <!-- menu opens when trigger button is clicked -->
      <button md-icon-button (click)="tray.toggle()">
        <md-icon>extension</md-icon>
      </button>
    </md-toolbar>
  </div>

  <ugly-action-tray #tray>
    <ugly-feature-extraction-menu
      (requestOutput)="extractFeatures($event)"
      [onRequestOutput]="closeTray"
      [disabled]="!canExtract"
    >
    </ugly-feature-extraction-menu>
  </ugly-action-tray>
  <div class="ugly-content">
    <ugly-notebook-feed
      [analyses]="analyses.toIterable()"
      [rootAudioUri]="rootAudioItem.uri"
      [onSeek]="onSeek"></ugly-notebook-feed>
  </div>
</div>