Refactor Global Status component to remove unnecessary console logs and clean up disk usage chart data handling
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:31:38 +01:00
parent bb31acb4cc
commit a9dd983f53
1 changed files with 0 additions and 7 deletions

View File

@ -47,16 +47,10 @@ export class GlobalStatusComponent implements OnInit {
this.ogBootSubnets = data.message.subnets; this.ogBootSubnets = data.message.subnets;
this.ogBootServicesStatus = data.message.services_status; this.ogBootServicesStatus = data.message.services_status;
this.installedOgLives = data.message.installed_oglives; this.installedOgLives = data.message.installed_oglives;
// Actualizar los datos de la gráfica
this.diskUsageChartData = [ this.diskUsageChartData = [
{ name: 'Usado', value: parseFloat(this.ogBootDiskUsage.used) }, { name: 'Usado', value: parseFloat(this.ogBootDiskUsage.used) },
{ name: 'Disponible', value: parseFloat(this.ogBootDiskUsage.available) } { name: 'Disponible', value: parseFloat(this.ogBootDiskUsage.available) }
]; ];
console.log('Disk Usage Chart Data:', this.diskUsageChartData);
console.log('Services Status:', this.ogBootServicesStatus);
this.loading = false; this.loading = false;
}, },
error: error => { error: error => {
@ -81,7 +75,6 @@ export class GlobalStatusComponent implements OnInit {
name: key, name: key,
status: this.ogBootServicesStatus[key] status: this.ogBootServicesStatus[key]
})) }))
console.log(services);
return services; return services;
} }