From a3518833859bdcadab4c14ac5674cb8143ee96e0 Mon Sep 17 00:00:00 2001 From: jmbardallo Date: Tue, 14 Jul 2026 09:41:06 +0200 Subject: [PATCH] Refactor boot-so-partition modal to use shared app-disk-partition-selector component --- .../boot-so-partition.component.html | 43 +++---------------- .../boot-so-partition.component.ts | 4 ++ 2 files changed, 11 insertions(+), 36 deletions(-) diff --git a/ogWebconsole/src/app/components/commands/main-commands/execute-command/boot-so-partition/boot-so-partition.component.html b/ogWebconsole/src/app/components/commands/main-commands/execute-command/boot-so-partition/boot-so-partition.component.html index e5af2c8..c6bc6b2 100644 --- a/ogWebconsole/src/app/components/commands/main-commands/execute-command/boot-so-partition/boot-so-partition.component.html +++ b/ogWebconsole/src/app/components/commands/main-commands/execute-command/boot-so-partition/boot-so-partition.component.html @@ -53,42 +53,13 @@
- - - - - - - - - - - - - -
{{ 'buttonSelectPartition' | translate }} - - - - - {{ column.header | translate }} - - {{ column.cell(image) }} - - - - - -
- {{ image.size }} MB - {{ image.size / 1024 }} GB -
-
- -
+ +
diff --git a/ogWebconsole/src/app/components/commands/main-commands/execute-command/boot-so-partition/boot-so-partition.component.ts b/ogWebconsole/src/app/components/commands/main-commands/execute-command/boot-so-partition/boot-so-partition.component.ts index 356aba4..783f574 100644 --- a/ogWebconsole/src/app/components/commands/main-commands/execute-command/boot-so-partition/boot-so-partition.component.ts +++ b/ogWebconsole/src/app/components/commands/main-commands/execute-command/boot-so-partition/boot-so-partition.component.ts @@ -59,6 +59,10 @@ export class BootSoPartitionComponent implements OnInit { displayedColumns = ['select', ...this.columns.map(column => column.columnDef)]; + isPartitionDisabled = (partition: any): boolean => { + return !partition.operativeSystem; + }; + constructor( @Inject(MAT_DIALOG_DATA) public data: { clients: any }, private dialogRef: MatDialogRef,