31 lines
1.0 KiB
HTML
31 lines
1.0 KiB
HTML
<h2 mat-dialog-title>
|
|
{{ profileName }}
|
|
</h2>
|
|
|
|
<mat-dialog-content class="dialog-content">
|
|
<div *ngIf="dataSource.data.length === 0" class="no-data-message">
|
|
<mat-icon>info</mat-icon>
|
|
<p>No hay hardware asociado a este perfil</p>
|
|
</div>
|
|
|
|
<div *ngIf="dataSource.data.length > 0" class="hardware-table-container">
|
|
<table mat-table [dataSource]="dataSource">
|
|
<ng-container *ngFor="let column of columns" [matColumnDef]="column.columnDef">
|
|
<th mat-header-cell *matHeaderCellDef> {{ column.header }} </th>
|
|
<td mat-cell *matCellDef="let hardware">
|
|
{{ column.cell(hardware) }}
|
|
</td>
|
|
</ng-container>
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
</table>
|
|
</div>
|
|
</mat-dialog-content>
|
|
|
|
<mat-dialog-actions class="action-container">
|
|
<button mat-button color="primary" (click)="onClose()">
|
|
<mat-icon>close</mat-icon>
|
|
Cerrar
|
|
</button>
|
|
</mat-dialog-actions> |