<div>
  <button
    mat-raised-button
    [disabled]="capturingProfile | async"
    (click)="openDialog()">
    {{captureButtonLabel | uppercase}}
    <mat-spinner
      diameter="20"
      [style.visibility]="(capturingProfile | async) ? 'visible' : 'hidden'">
    </mat-spinner>
  </button>
</div>

