view src/app/feature-extraction-menu/feature-extraction-menu.component.html @ 434:0991af5c6eb2

Disable remote load button whilst loading
author Lucas Thompson <dev@lucas.im>
date Wed, 07 Jun 2017 15:30:15 +0100
parents 48904aa87ba3
children 9d354d9bfa6b
line wrap: on
line source
<div class="container">
  <md-list dense>
    <ng-container
      *ngFor="let extractor of extractors"
    >
      <h3 md-subheader>{{extractor.name}}</h3>
      <md-list-item
        *ngFor="let output of extractor.outputs"
        (click)="extract(output)">
        <md-icon md-list-icon>extension</md-icon>
        <h4 md-line>{{output.name}}</h4>
        <p md-line>{{output.combinedKey}}</p>
        <button md-icon-button
                (click)="extract(output); $event.stopPropagation()"
                [disabled]="disabled">
          <md-icon>add</md-icon>
        </button>
      </md-list-item>
      <md-divider></md-divider>
    </ng-container>
  </md-list>
  <md-spinner *ngIf="isLoading"></md-spinner>
  <button
    md-button
    (click)="load()"
    [disabled]="isLoading"
  ><md-icon>cloud_download</md-icon> Load more</button>
</div>