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.updateGeneralData();
|
||||||
this.updateNetworkData();
|
this.updateNetworkData();
|
||||||
this.calculateDiskUsage();
|
this.calculateDiskUsage();
|
||||||
|
this.loadPartitions();
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
} else {
|
} else {
|
||||||
console.error('No se recibieron datos del cliente.');
|
console.error('No se recibieron datos del cliente.');
|
||||||
|
@ -197,6 +198,7 @@ export class ClientDetailsComponent {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.diskUsageData = this.chartDisk;
|
this.diskUsageData = this.chartDisk;
|
||||||
|
console.log(this.chartDisk)
|
||||||
this.isDiskUsageEmpty = this.diskUsageData.length === 0;
|
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({
|
this.http.get<any>(`${this.baseUrl}/partitions?client.id=${this.clientData.id}&order[diskNumber, partitionNumber]=ASC`).subscribe({
|
||||||
next: data => {
|
next: data => {
|
||||||
|
console.log(data)
|
||||||
const filteredPartitions = data['hydra:member'].filter((partition: any) => partition.partitionNumber !== 0);
|
const filteredPartitions = data['hydra:member'].filter((partition: any) => partition.partitionNumber !== 0);
|
||||||
this.dataSource = filteredPartitions;
|
this.dataSource = filteredPartitions;
|
||||||
this.partitions = filteredPartitions;
|
this.partitions = filteredPartitions;
|
||||||
|
console.log(this.partitions)
|
||||||
this.calculateDiskUsage();
|
this.calculateDiskUsage();
|
||||||
},
|
},
|
||||||
error: error => {
|
error: error => {
|
||||||
|
|
Loading…
Reference in New Issue