Enhance Global Status component layout with loading state handling and improved dialog dimensions
testing/ogGui-multibranch/pipeline/head This commit looks good Details

pull/18/head
Lucas Lara García 2025-03-20 14:17:49 +01:00
parent b1af49c641
commit 44c4c60297
4 changed files with 42 additions and 26 deletions

View File

@ -1,7 +1,13 @@
mat-dialog-content { mat-dialog-content {
height: calc(100% - 64px);
overflow: auto;
padding-top: 0.5em !important; padding-top: 0.5em !important;
} }
.content-container {
min-height: 100%;
}
.action-container { .action-container {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;

View File

@ -2,8 +2,10 @@
<h1 mat-dialog-title>{{'GlobalStatus' | translate}}</h1> <h1 mat-dialog-title>{{'GlobalStatus' | translate}}</h1>
</header> </header>
<mat-dialog-content> <mat-dialog-content>
<app-loading [isLoading]="loading"></app-loading>
<mat-tab-group (selectedTabChange)="onTabChange($event)"> <mat-tab-group (selectedTabChange)="onTabChange($event)">
<mat-tab label="OgBoot"> <mat-tab label="OgBoot">
<div *ngIf="!loading" class="content-container">
<app-status-tab <app-status-tab
[loading]="loading" [loading]="loading"
[diskUsage]="ogBootDiskUsage" [diskUsage]="ogBootDiskUsage"
@ -16,9 +18,11 @@
[showLabels]="showLabels" [showLabels]="showLabels"
[isDhcp]="isDhcp"> [isDhcp]="isDhcp">
</app-status-tab> </app-status-tab>
</div>
</mat-tab> </mat-tab>
<mat-tab label="Dhcp"> <mat-tab label="Dhcp">
<div *ngIf="!loading" class="content-container">
<app-status-tab <app-status-tab
[loading]="loading" [loading]="loading"
[diskUsage]="dhcpDiskUsage" [diskUsage]="dhcpDiskUsage"
@ -31,6 +35,7 @@
[showLabels]="showLabels" [showLabels]="showLabels"
[isDhcp]="isDhcp"> [isDhcp]="isDhcp">
</app-status-tab> </app-status-tab>
</div>
</mat-tab> </mat-tab>
<mat-tab label="Pxe"> Content 3 </mat-tab> <mat-tab label="Pxe"> Content 3 </mat-tab>

View File

@ -49,6 +49,11 @@ export class HeaderComponent implements OnInit {
} }
showGlobalStatus() { showGlobalStatus() {
this.dialog.open(GlobalStatusComponent) this.dialog.open(GlobalStatusComponent, {
width: '45vw',
height: '80vh',
// maxWidth: '60vw',
// maxHeight: '60vh'
})
} }
} }