view src/app/analysis-item/analysis-item.component.html @ 224:1c1cc4ec183c

Setup analysis-item to display determinate spinner if progress prop provided when declared.
author Lucas Thompson <dev@lucas.im>
date Fri, 21 Apr 2017 12:55:24 +0100
parents 1db0bb28688b
children 0249ee049353
line wrap: on
line source
<md-card>
  <md-card-header>
    <md-card-title>{{title}}</md-card-title>
    <md-card-subtitle>{{description}}</md-card-subtitle>
  </md-card-header>
  <md-card-content>
    <template [ngIf]="isLoading()">
      <ugly-progress-spinner
        [isDeterminate]="true"
        [progress]="progress"
      ></ugly-progress-spinner>
    </template>
    <template [ngIf]="!isLoading()">
      <app-waveform
        [timeline]="timeline"
        [trackIdPrefix]=" id || title"
        [isSubscribedToAudioService]="isActive && isRoot"
        [isSubscribedToExtractionService]="isActive && !isRoot"
        [isOneShotExtractor]="true"
        [isSeeking]="isActive"
      ></app-waveform>
    </template>
  </md-card-content>
</md-card>