<h1 mat-dialog-title class="prevent-select">Gestión de criticidad del equipamiento</h1>
<div mat-dialog-content class="prevent-select">
  <div class="is-loading animated fadeIn fast" *ngIf="isLoading">
    <mat-spinner align="center"></mat-spinner>
    <h3>Cargando datos ...</h3>
  </div>
  <div class="has-error animated fadeIn pt-64" *ngIf="!isLoading && hasError">
    <mat-icon class="red_primary_font">error</mat-icon>
    <h2>{{ errorStr }}</h2>
  </div>
  <mat-form-field class="w-100 mt-8" appearance="outline" *ngIf="!isLoading && !hasError">
    <mat-label>Criticidad del equipamiento</mat-label>
    <mat-select [formControl]="priorityControl">
      <mat-option *ngFor="let priority of orderPriorities" [value]="priority.value">
        <span style="font-weight: 500;" [style.color]="priority.color">
          {{ priority.label }}
        </span>
      </mat-option>
    </mat-select>
  </mat-form-field>
</div>
<div mat-dialog-actions align="end">
  <button mat-button mat-dialog-close>Cerrar</button>
  <button mat-button [disabled]="priorityControl.invalid" (click)="saveCriticality(priorityControl.value)">Guardar cambios</button>
</div>