<h4 mat-dialog-title>{{dialogTitle}}</h4>
<mat-dialog-content>
  <div style="margin-bottom: 10px;">
    {{dialogText}}
  </div>
</mat-dialog-content>
<mat-dialog-actions>
  <!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->
  <button color="primary" mat-flat-button type="submit" (click)="confirmClicked()">{{submitText}}</button>
  <div class="mat-spinner" *ngIf="submitClicked">
    <mat-spinner [diameter]="25"></mat-spinner>
  </div>
  <span class="spacer"></span>
  <button style="float: right;" mat-stroked-button mat-dialog-close>Cancel</button>
</mat-dialog-actions>