fix(inventory): unify badge colors and fix disk type badge missing in deploy and create image views
parent
4154e18ab6
commit
5ece8cfec9
|
|
@ -125,14 +125,10 @@ export class CreateClientImageComponent implements OnInit{
|
||||||
this.client = response;
|
this.client = response;
|
||||||
this.clientName = response.name;
|
this.clientName = response.name;
|
||||||
this.selectedRepository = response.repository;
|
this.selectedRepository = response.repository;
|
||||||
|
|
||||||
const validPartitions = response.partitions.filter((partition: any) => {
|
|
||||||
return partition.partitionNumber !== 0;
|
|
||||||
});
|
|
||||||
|
|
||||||
this.dataSource.data = validPartitions;
|
this.dataSource.data = response.partitions;
|
||||||
|
|
||||||
const firstValidPartition = validPartitions.find((partition: any) => {
|
const firstValidPartition = response.partitions.find((partition: any) => {
|
||||||
return partition.operativeSystem;
|
return partition.operativeSystem;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -273,9 +273,7 @@ export class DeployImageComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fullClientData.partitions) {
|
if (fullClientData.partitions) {
|
||||||
this.filteredPartitions = fullClientData.partitions.filter((partition: any) => {
|
this.filteredPartitions = fullClientData.partitions;
|
||||||
return partition.partitionNumber !== 0;
|
|
||||||
});
|
|
||||||
this.p2pMode = fullClientData.organizationalUnit?.networkSettings?.p2pMode;
|
this.p2pMode = fullClientData.organizationalUnit?.networkSettings?.p2pMode;
|
||||||
this.p2pTime = fullClientData.organizationalUnit?.networkSettings?.p2pTime;
|
this.p2pTime = fullClientData.organizationalUnit?.networkSettings?.p2pTime;
|
||||||
this.mcastSpeed = fullClientData.organizationalUnit?.networkSettings?.mcastSpeed;
|
this.mcastSpeed = fullClientData.organizationalUnit?.networkSettings?.mcastSpeed;
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -192,13 +192,14 @@ table {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.badge-disk-type {
|
.badge-disk-type {
|
||||||
display: inline-block;
|
display: inline-flex;
|
||||||
padding: 2px 6px;
|
align-items: center;
|
||||||
font-size: 11px;
|
padding: 2px 8px;
|
||||||
font-weight: bold;
|
font-size: 0.75rem;
|
||||||
color: #fff;
|
font-weight: 600;
|
||||||
background-color: #607d8b;
|
color: #1976d2;
|
||||||
border-radius: 4px;
|
background-color: #e3f2fd;
|
||||||
|
border-radius: 12px;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,13 +33,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-disk-type {
|
.badge-disk-type {
|
||||||
display: inline-block;
|
display: inline-flex;
|
||||||
padding: 2px 6px;
|
align-items: center;
|
||||||
font-size: 11px;
|
padding: 2px 8px;
|
||||||
font-weight: bold;
|
font-size: 0.75rem;
|
||||||
color: #fff;
|
font-weight: 600;
|
||||||
background-color: #607d8b;
|
color: #1976d2;
|
||||||
border-radius: 4px;
|
background-color: #e3f2fd;
|
||||||
|
border-radius: 12px;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ export class DiskPartitionSelectorComponent implements OnChanges {
|
||||||
const partitionZero = diskPartitions.find((p: any) => p.partitionNumber === 0);
|
const partitionZero = diskPartitions.find((p: any) => p.partitionNumber === 0);
|
||||||
this.diskUsageData.push({
|
this.diskUsageData.push({
|
||||||
diskNumber: diskNum,
|
diskNumber: diskNum,
|
||||||
partitions: diskPartitions,
|
partitions: diskPartitions.filter((p: any) => p.partitionNumber !== 0),
|
||||||
diskType: partitionZero ? partitionZero.diskType : undefined
|
diskType: partitionZero ? partitionZero.diskType : undefined
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue