Enhance Global Status component layout with loading state handling and improved dialog dimensions
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
parent
b1af49c641
commit
44c4c60297
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue