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.clientName = response.name;
|
||||
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;
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -273,9 +273,7 @@ export class DeployImageComponent implements OnInit {
|
|||
}
|
||||
|
||||
if (fullClientData.partitions) {
|
||||
this.filteredPartitions = fullClientData.partitions.filter((partition: any) => {
|
||||
return partition.partitionNumber !== 0;
|
||||
});
|
||||
this.filteredPartitions = fullClientData.partitions;
|
||||
this.p2pMode = fullClientData.organizationalUnit?.networkSettings?.p2pMode;
|
||||
this.p2pTime = fullClientData.organizationalUnit?.networkSettings?.p2pTime;
|
||||
this.mcastSpeed = fullClientData.organizationalUnit?.networkSettings?.mcastSpeed;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -192,13 +192,14 @@ table {
|
|||
font-weight: bold;
|
||||
}
|
||||
.badge-disk-type {
|
||||
display: inline-block;
|
||||
padding: 2px 6px;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
background-color: #607d8b;
|
||||
border-radius: 4px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #1976d2;
|
||||
background-color: #e3f2fd;
|
||||
border-radius: 12px;
|
||||
margin-left: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,13 +33,14 @@
|
|||
}
|
||||
|
||||
.badge-disk-type {
|
||||
display: inline-block;
|
||||
padding: 2px 6px;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
background-color: #607d8b;
|
||||
border-radius: 4px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: #1976d2;
|
||||
background-color: #e3f2fd;
|
||||
border-radius: 12px;
|
||||
margin-left: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export class DiskPartitionSelectorComponent implements OnChanges {
|
|||
const partitionZero = diskPartitions.find((p: any) => p.partitionNumber === 0);
|
||||
this.diskUsageData.push({
|
||||
diskNumber: diskNum,
|
||||
partitions: diskPartitions,
|
||||
partitions: diskPartitions.filter((p: any) => p.partitionNumber !== 0),
|
||||
diskType: partitionZero ? partitionZero.diskType : undefined
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue