Updated filter short OU to API

oggui/calendar
Manuel Aranda Rosales 2024-10-07 11:31:37 +02:00
parent 275064d8f5
commit ba26e83fce
2 changed files with 6 additions and 2 deletions

View File

@ -142,7 +142,11 @@ export class ClientTabViewComponent {
loadOrganizationalUnits() {
this.loading = true;
this.http.get<any>( `${this.baseUrl}/organizational-units?&page=1&itemsPerPage=10`).subscribe(
this.http.get<any>( `${this.baseUrl}/organizational-units?&page=1&itemsPerPage=10000`, {
params: {
'groups[]': ['organizational-unit:read:collection:short']
}
}).subscribe(
response => {
this.organizationalUnits = response['hydra:member'];
this.loading = false;

View File

@ -8,7 +8,7 @@
<mat-divider class="divider"></mat-divider>
<div class="search-container">
<mat-form-field appearance="fill" class="search-string">
<mat-label i18n="@@searchLabel">Buscar nombre de cliente</mat-label>
<mat-label i18n="@@searchLabel">Buscar nombre de OU</mat-label>
<input matInput placeholder="Búsqueda" [(ngModel)]="filters['name']" (keyup.enter)="search()" i18n-placeholder="@@searchPlaceholder">
<mat-icon matSuffix>search</mat-icon>
<mat-hint i18n="@@searchHint">Pulsar 'enter' para buscar</mat-hint>