diff --git a/ogWebconsole/src/app/components/groups/components/client-main-view/create-image/create-image.component.ts b/ogWebconsole/src/app/components/groups/components/client-main-view/create-image/create-image.component.ts index 70e6b27..1acbe6d 100644 --- a/ogWebconsole/src/app/components/groups/components/client-main-view/create-image/create-image.component.ts +++ b/ogWebconsole/src/app/components/groups/components/client-main-view/create-image/create-image.component.ts @@ -641,15 +641,12 @@ export class CreateClientImageComponent implements OnInit{ openScheduleModal(): void { let scope = 'clients'; - // Verificar que tenemos la información del cliente if (!this.client) { this.toastService.error('No se ha cargado la información del cliente'); return; } - // Crear un array con el objeto cliente completo let selectedClients = [this.client]; - console.log(selectedClients); const dialogRef = this.dialog.open(CreateTaskComponent, { width: '800px', @@ -657,14 +654,13 @@ export class CreateClientImageComponent implements OnInit{ scope: scope, selectedClients: selectedClients, organizationalUnit: this.client['@id'], - source: 'create-image', + source: 'assistant', runScriptContext: null } }); dialogRef.afterClosed().subscribe((result: any) => { if (result) { - // Verificar que tenemos la partición seleccionada if (!this.selectedPartition) { this.toastService.error('Debe seleccionar una partición'); return; @@ -678,7 +674,8 @@ export class CreateClientImageComponent implements OnInit{ action: this.monolithicAction, diskNumber: this.selectedPartition.diskNumber, partitionNumber: this.selectedPartition.partitionNumber, - imageName: this.monolithicAction === 'create' ? this.name : this.selectedImage?.name + imageName: this.monolithicAction === 'create' ? this.name : this.selectedImage?.name, + imageUuid: this.monolithicAction === 'update' ? this.selectedImage?.uuid : null }; } else if (this.imageType === 'git') { payload = {