Merge pull request 'Improvements' (#11) from develop into main
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details
testing/ogGui-multibranch/pipeline/tag This commit looks good Details

Reviewed-on: #11
pull/12/head^2 opengnsys_devel-0.0.22
Manuel Aranda Rosales 2025-01-15 15:54:24 +01:00
commit 898444f1af
7 changed files with 13 additions and 13 deletions

View File

@ -20,8 +20,8 @@ export class ExecuteCommandComponent implements OnInit {
{name: 'Apagar', slug: 'power-off', disabled: false},
{name: 'Reiniciar', slug: 'reboot', disabled: false},
{name: 'Iniciar Sesión', slug: 'login', disabled: true},
{name: 'Crear Image', slug: 'create-image', disabled: false},
{name: 'Deploy Image', slug: 'deploy-image', disabled: false},
{name: 'Crear imagen', slug: 'create-image', disabled: false},
{name: 'Clonar/desplegar imagen', slug: 'deploy-image', disabled: false},
{name: 'Eliminar Imagen Cache', slug: 'delete-image-cache', disabled: true},
{name: 'Particionar y Formatear', slug: 'partition', disabled: false},
{name: 'Inventario Software', slug: 'software-inventory', disabled: true},

View File

@ -42,8 +42,8 @@ export class ClientMainViewComponent implements OnInit {
{name: 'Apagar', slug: 'power-off'},
{name: 'Reiniciar', slug: 'reboot'},
{name: 'Iniciar Sesión', slug: 'login'},
{name: 'Crear Image', slug: 'create-image'},
{name: 'Deploy Image', slug: 'deploy-image'},
{name: 'Crear imagen', slug: 'create-image'},
{name: 'Clonar/desplegar imagen', slug: 'deploy-image'},
{name: 'Eliminar Imagen Cache', slug: 'delete-image-cache'},
{name: 'Particionar y Formatear', slug: 'partition'},
{name: 'Inventario Software', slug: 'software-inventory'},

View File

@ -11,7 +11,7 @@
<div class="option-container">
<mat-radio-group [(ngModel)]="selectedOption" name="selectedOption" aria-label="Selecciona una opcion">
<mat-radio-button value="update-cache">Actualizar cache</mat-radio-button>
<mat-radio-button value="deploy-image">Deploy imagen</mat-radio-button>
<mat-radio-button value="deploy-image">Desplegar imagen</mat-radio-button>
</mat-radio-group>
</div>

View File

@ -11,8 +11,8 @@
<div [formGroup]="taskForm" class="search-container">
<mat-form-field appearance="fill" class="search-boolean" joyrideStep="selectClassStep" text="{{ 'selectClassDescription' | translate }}">
<mat-label>{{ 'selectClassLabel' | translate }}</mat-label>
<mat-select (selectionChange)="loadChildUnits($event.value)">
<mat-option *ngFor="let unit of units" [value]="unit.uuid">{{ unit.name }}</mat-option>
<mat-select (selectionChange)="loadChildUnits($event)">
<mat-option *ngFor="let unit of units" [value]="unit">{{ unit.name }}</mat-option>
</mat-select>
</mat-form-field>
</div>

View File

@ -69,8 +69,8 @@ export class PxeBootFilesComponent implements OnInit {
);
}
loadChildUnits(unitId: string) {
this.http.get<any>(`${this.baseUrl}/clients?parent.id${unitId}`).subscribe(
loadChildUnits(event: any) {
this.http.get<any>(`${this.baseUrl}/clients?organizationalUnit.id=${event.value.id}`).subscribe(
response => {
this.dataSource = response['hydra:member'];
},

View File

@ -3,8 +3,8 @@
<mat-dialog-content>
<mat-form-field appearance="fill" class="full-width">
<mat-label>Seleccione aula</mat-label>
<mat-select [formControl]="unitControl" (selectionChange)="loadChildUnits($event.value)">
<mat-option *ngFor="let unit of units" [value]="unit.uuid">{{ unit.name }}</mat-option>
<mat-select [formControl]="unitControl" (selectionChange)="loadChildUnits($event)">
<mat-option *ngFor="let unit of units" [value]="unit">{{ unit.name }}</mat-option>
</mat-select>
</mat-form-field>

View File

@ -40,8 +40,8 @@ export class AddClientsToSubnetComponent implements OnInit {
);
}
loadChildUnits(unitId: string) {
this.http.get<any>(`${this.baseUrl}/clients?parent.id${unitId}`).subscribe(
loadChildUnits(event: any) {
this.http.get<any>(`${this.baseUrl}/clients?organizationalUnit.id=${event.value.id}`).subscribe(
response => {
this.clients = response['hydra:member'];
},