Commit 29bda7a2 authored by Stefan Oppl's avatar Stefan Oppl
Browse files

fixed missing entries in drop down lists

parent c45cafa7
Pipeline #996 passed with stages
in 10 minutes and 56 seconds
......@@ -3,7 +3,7 @@ import { HttpClient, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { SERVER_API_URL } from 'app/app.constants';
import { createRequestOption } from 'app/shared';
import { createRequestOption, ITEMS_PER_PAGE, MAX_PAGE_SIZE } from 'app/shared';
import { IModul } from 'app/shared/model/modul.model';
type EntityResponseType = HttpResponse<IModul>;
......@@ -28,6 +28,13 @@ export class ModulService {
}
query(req?: any): Observable<EntityArrayResponseType> {
if (!req) {
req = {
page: 0,
size: MAX_PAGE_SIZE,
sort: ['kuerzel,asc', 'id']
};
}
const options = createRequestOption(req);
return this.http.get<IModul[]>(this.resourceUrl, { params: options, observe: 'response' });
}
......
export const ITEMS_PER_PAGE = 20;
export const MAX_PAGE_SIZE = 100;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment