<h1 mat-dialog-title class="prevent-select">Cambiar servicio web</h1>
<div mat-dialog-content class="prevent-select pt-8">
  <div class="is-loading animated fadeIn fast" *ngIf="isLoading">
    <mat-spinner align="center"></mat-spinner>
    <h3>Cargando datos ...</h3>
  </div>
  <div class="is-loading animated fadeIn fast" *ngIf="!isLoading && hasError">
    <mat-icon class="red_primary_font mb-40" style="transform: scale(5);">error</mat-icon>
    <h3 style="font-weight: bold; font-style: italic;">{{ errorStr }}</h3>
  </div>
  <div class="w-100 animated fadeIn pt-8 " *ngIf="!isLoading && !hasError">
    <mat-form-field appearance="outline" class="w-100">
      <mat-label>Servicio web</mat-label>
      <mat-select [(ngModel)]="service" (valueChange)="serviceChange($event)">
        <mat-option *ngFor="let service of webServices" [value]="service.IDSERVICIO">
          {{ service.URL }}
        </mat-option>
      </mat-select>
    </mat-form-field>
    <mat-form-field appearance="outline" class="w-100 mt-8">
      <mat-label>Descripción</mat-label>
      <textarea matInput readonly [(ngModel)]="description"></textarea>
    </mat-form-field>
  </div>
</div>
<mat-dialog-actions align="end">
  <button mat-button cdkFocusInitial mat-dialog-close>
    Cerrar
  </button>
  <button mat-button (click)="saveChanges()">
    Guardar cambios
  </button>
</mat-dialog-actions>