Merge pull request 'Improvements' (#11) from develop into main
Reviewed-on: #11pull/12/head^2 opengnsys_devel-0.0.22
commit
898444f1af
|
@ -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},
|
||||
|
|
|
@ -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'},
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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'];
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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'];
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue