Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
dialog.component.html 1.21 KiB
Newer Older
<div class="dialog">
  <h1 mat-dialog-title>{{title}}</h1>
  <mat-dialog-content>{{text}}</mat-dialog-content>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed

  <mat-dialog-actions>
    <div *ngIf="isConfirmationDialog()" class="divTableCell">
      <button mat-raised-button color="primary" (click)="dialogRef.close(true)" id="yesbuttondialog_id" tabindex="0">
        <mat-icon>check_circle</mat-icon>
        <span>Yes</span>
      </button>
    </div>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed

    <div *ngIf="isConfirmationDialog()" class="divTableCell">
      <button mat-raised-button color="primary" (click)="dialogRef.close(false)" id="nobuttondialog_id" tabindex="1">
        <mat-icon>cancel</mat-icon>
        <span>No</span>
      </button>
    </div>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed

    <div *ngIf="isInformationDialog()" class="divTableCell">
      <button mat-raised-button color="primary" (click)="dialogRef.close(true)" id="okbuttondialog_id" tabindex="3">
        <mat-icon>warning</mat-icon>
        <span>OK</span>
      </button>
    </div>

    <div *ngIf="isWarningDialog()" class="divTableCell">
      <button mat-raised-button color="primary" (click)="dialogRef.close(false)" id="closebuttondialog_id" tabindex="3">
        <mat-icon>close</mat-icon>
        <span>Close</span>
      </button>
    </div>

  </mat-dialog-actions>
</div>