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

pull/18/head
Lucas Lara García 2025-03-18 14:27:41 +01:00
parent f7dcafbd52
commit bb31acb4cc
1 changed files with 11 additions and 2 deletions

View File

@ -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 {