Updated filter short OU to API
parent
275064d8f5
commit
ba26e83fce
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue