Update status page

This commit is contained in:
piotrpekala7
2020-06-23 12:11:28 +02:00
parent 91cfd1d257
commit c78517c22e
3 changed files with 10 additions and 4 deletions

View File

@ -129,7 +129,7 @@
></circle-progress> ></circle-progress>
</div> </div>
<div class="wrapper"> <div class="chips-wrapper">
<mat-chip-list> <mat-chip-list>
<mat-chip color="primary" selected>Memory total: {{formatBytes(computeStatistics.statistics.memory_total)}}</mat-chip> <mat-chip color="primary" selected>Memory total: {{formatBytes(computeStatistics.statistics.memory_total)}}</mat-chip>
</mat-chip-list> </mat-chip-list>
@ -141,7 +141,7 @@
</mat-chip-list> </mat-chip-list>
</div> </div>
<div class="wrapper"> <div class="chips-wrapper">
<mat-chip-list> <mat-chip-list>
<mat-chip color="primary" selected>Swap total: {{formatBytes(computeStatistics.statistics.swap_total)}}</mat-chip> <mat-chip color="primary" selected>Swap total: {{formatBytes(computeStatistics.statistics.swap_total)}}</mat-chip>
</mat-chip-list> </mat-chip-list>

View File

@ -2,5 +2,11 @@
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-bottom: 40px; }
.chips-wrapper {
width: 100%;
display: flex;
justify-content: space-between;
margin-bottom: 10px;
} }

View File

@ -37,7 +37,7 @@ export class StatusInfoComponent implements OnInit {
{ {
this.getStatistics(); this.getStatistics();
}, },
10000); 20000);
}), }),
error => { error => {
this.toasterService.error('Required server version is 2.3') this.toasterService.error('Required server version is 2.3')