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: 'Apagar', slug: 'power-off', disabled: false},
{name: 'Reiniciar', slug: 'reboot', disabled: false}, {name: 'Reiniciar', slug: 'reboot', disabled: false},
{name: 'Iniciar Sesión', slug: 'login', disabled: true}, {name: 'Iniciar Sesión', slug: 'login', disabled: true},
{name: 'Crear Image', slug: 'create-image', disabled: false}, {name: 'Crear imagen', slug: 'create-image', disabled: false},
{name: 'Deploy Image', slug: 'deploy-image', disabled: false}, {name: 'Clonar/desplegar imagen', slug: 'deploy-image', disabled: false},
{name: 'Eliminar Imagen Cache', slug: 'delete-image-cache', disabled: true}, {name: 'Eliminar Imagen Cache', slug: 'delete-image-cache', disabled: true},
{name: 'Particionar y Formatear', slug: 'partition', disabled: false}, {name: 'Particionar y Formatear', slug: 'partition', disabled: false},
{name: 'Inventario Software', slug: 'software-inventory', disabled: true}, {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: 'Apagar', slug: 'power-off'},
{name: 'Reiniciar', slug: 'reboot'}, {name: 'Reiniciar', slug: 'reboot'},
{name: 'Iniciar Sesión', slug: 'login'}, {name: 'Iniciar Sesión', slug: 'login'},
{name: 'Crear Image', slug: 'create-image'}, {name: 'Crear imagen', slug: 'create-image'},
{name: 'Deploy Image', slug: 'deploy-image'}, {name: 'Clonar/desplegar imagen', slug: 'deploy-image'},
{name: 'Eliminar Imagen Cache', slug: 'delete-image-cache'}, {name: 'Eliminar Imagen Cache', slug: 'delete-image-cache'},
{name: 'Particionar y Formatear', slug: 'partition'}, {name: 'Particionar y Formatear', slug: 'partition'},
{name: 'Inventario Software', slug: 'software-inventory'}, {name: 'Inventario Software', slug: 'software-inventory'},

View File

@ -11,7 +11,7 @@
<div class="option-container"> <div class="option-container">
<mat-radio-group [(ngModel)]="selectedOption" name="selectedOption" aria-label="Selecciona una opcion"> <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="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> </mat-radio-group>
</div> </div>

View File

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

View File

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

View File

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

View File

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