Fix service status assignment and update disk usage chart data in Global Status component
testing/ogGui-multibranch/pipeline/head Something is wrong with the build of this commit
Details
testing/ogGui-multibranch/pipeline/head Something is wrong with the build of this commit
Details
parent
f7dcafbd52
commit
bb31acb4cc
|
@ -45,8 +45,18 @@ export class GlobalStatusComponent implements OnInit {
|
|||
next: data => {
|
||||
this.ogBootDiskUsage = data.message.disk_usage;
|
||||
this.ogBootSubnets = data.message.subnets;
|
||||
this.ogBootServicesStatus = data.message.service_status;
|
||||
this.ogBootServicesStatus = data.message.services_status;
|
||||
this.installedOgLives = data.message.installed_oglives;
|
||||
|
||||
// Actualizar los datos de la gráfica
|
||||
this.diskUsageChartData = [
|
||||
{ name: 'Usado', value: parseFloat(this.ogBootDiskUsage.used) },
|
||||
{ name: 'Disponible', value: parseFloat(this.ogBootDiskUsage.available) }
|
||||
];
|
||||
|
||||
console.log('Disk Usage Chart Data:', this.diskUsageChartData);
|
||||
console.log('Services Status:', this.ogBootServicesStatus);
|
||||
|
||||
this.loading = false;
|
||||
},
|
||||
error: error => {
|
||||
|
@ -55,7 +65,6 @@ export class GlobalStatusComponent implements OnInit {
|
|||
this.loading = false;
|
||||
}
|
||||
});
|
||||
this.loading = true;
|
||||
}
|
||||
|
||||
onTabChange(event: MatTabChangeEvent): void {
|
||||
|
|
Loading…
Reference in New Issue