refactor(inventory): use new Angular control flow syntax for diskType
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details
oggui-debian-package/pipeline/head This commit looks good Details

pull/98/head
Juan Manuel Bardallo 2026-07-31 13:42:36 +02:00
parent 47d7506877
commit 70f71ef99b
1 changed files with 5 additions and 1 deletions

View File

@ -104,7 +104,11 @@
<mat-option *ngFor="let disk of disks" [value]="disk.diskNumber">
<div class="disk-option">
<div class="disk-info">
<span class="disk-name">Disco {{ disk.diskNumber }} <span *ngIf="disk.diskType" class="badge-disk-type">{{ disk.diskType }}</span></span>
<span class="disk-name">Disco {{ disk.diskNumber }}
@if (disk.diskType) {
<span class="badge-disk-type">{{ disk.diskType }}</span>
}
</span>
<span class="disk-size"> {{ (disk.totalDiskSize / 1024).toFixed(2) }} GB</span>
</div>
<div class="disk-details">