commit
ed8506525a
|
@ -1,4 +1,9 @@
|
|||
# Changelog
|
||||
## [0.22.1] - 2025-09-05
|
||||
### Improved
|
||||
- Se ha mejorado la experiencia de usuario con el despleable de "tipos de particion" en el asistente de particonado.
|
||||
|
||||
---
|
||||
## [0.22.0] - 2025-09-03
|
||||
### Added
|
||||
- Nueva ux a la hora de gestionar tareas programadas.
|
||||
|
|
|
@ -251,7 +251,7 @@ export class PartitionAssistantComponent implements OnInit, AfterViewInit, OnDes
|
|||
partitionNumber: partition.partitionNumber,
|
||||
size: this.convertBytesToGB(partition.partitionNumber === 1 && this.partitionCode === 'GPT' ? 512 : partition.size),
|
||||
memoryUsage: partition.memoryUsage,
|
||||
partitionCode: partition.partitionNumber === 1 && this.partitionCode === 'GPT' ? 'EFI' : partition.partitionCode,
|
||||
partitionCode: partition.partitionNumber === 1 && this.partitionCode === 'GPT' ? 'EFI' : this.validatePartitionCode(partition.partitionCode),
|
||||
filesystem: partition.partitionNumber === 1 && this.partitionCode === 'GPT' ? 'FAT32' : partition.filesystem,
|
||||
sizeBytes: partition.partitionNumber === 1 && this.partitionCode === 'GPT' ? 512 : partition.size,
|
||||
format: false,
|
||||
|
@ -360,7 +360,7 @@ export class PartitionAssistantComponent implements OnInit, AfterViewInit, OnDes
|
|||
disk.partitions.push({
|
||||
partitionNumber: newPartitionNumber,
|
||||
size: 0,
|
||||
partitionCode: 'LINUX',
|
||||
partitionCode: 'EMPTY',
|
||||
filesystem: 'EXT4',
|
||||
memoryUsage: 0,
|
||||
sizeBytes: 0,
|
||||
|
@ -822,4 +822,14 @@ export class PartitionAssistantComponent implements OnInit, AfterViewInit, OnDes
|
|||
private getColorForPartition(partitionNumber: number): string {
|
||||
return this.partitionColors[(partitionNumber - 1) % this.partitionColors.length];
|
||||
}
|
||||
|
||||
|
||||
private validatePartitionCode(partitionCode: string | undefined | null): string {
|
||||
if (!partitionCode || partitionCode.trim() === '') {
|
||||
return 'EMPTY';
|
||||
}
|
||||
|
||||
const isValidCode = this.partitionTypes.some(type => type.name === partitionCode);
|
||||
return isValidCode ? partitionCode : 'EMPTY';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue