refs #1931 Load partitions data and log relevant information for debugging
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
parent
ca0140e275
commit
a40be684b5
|
@ -109,6 +109,7 @@ export class ClientDetailsComponent {
|
|||
this.updateGeneralData();
|
||||
this.updateNetworkData();
|
||||
this.calculateDiskUsage();
|
||||
this.loadPartitions();
|
||||
this.loading = false;
|
||||
} else {
|
||||
console.error('No se recibieron datos del cliente.');
|
||||
|
@ -197,6 +198,7 @@ export class ClientDetailsComponent {
|
|||
});
|
||||
|
||||
this.diskUsageData = this.chartDisk;
|
||||
console.log(this.chartDisk)
|
||||
this.isDiskUsageEmpty = this.diskUsageData.length === 0;
|
||||
}
|
||||
|
||||
|
@ -214,9 +216,11 @@ export class ClientDetailsComponent {
|
|||
|
||||
this.http.get<any>(`${this.baseUrl}/partitions?client.id=${this.clientData.id}&order[diskNumber, partitionNumber]=ASC`).subscribe({
|
||||
next: data => {
|
||||
console.log(data)
|
||||
const filteredPartitions = data['hydra:member'].filter((partition: any) => partition.partitionNumber !== 0);
|
||||
this.dataSource = filteredPartitions;
|
||||
this.partitions = filteredPartitions;
|
||||
console.log(this.partitions)
|
||||
this.calculateDiskUsage();
|
||||
},
|
||||
error: error => {
|
||||
|
|
Loading…
Reference in New Issue