Commit be516ffa authored by Matija Obreza's avatar Matija Obreza
Browse files

Load more descriptor records by default

parent 355f4048
......@@ -42,7 +42,7 @@ export class DescriptorService {
}
// Lists published descriptors
public static listDescriptors(token: string, page: number = 0, results: number = 10, sortBy?: string, filter: IDescriptorFilter = {}, order?: string): Promise<Page<Descriptor>> {
public static listDescriptors(token: string, page: number = 0, results: number = 50, sortBy?: string, filter: IDescriptorFilter = {}, order?: string): Promise<Page<Descriptor>> {
return authenticatedRequest(token, {
url: `${LIST_DESCRIPTORS_URL}?p=${page}&l=${results}${order ? '&d=' + order : ''}${sortBy ? '&s=' + sortBy : ''}`,
......
......@@ -36,7 +36,7 @@ const styles = (theme) => ({
class BrowsePage extends React.Component<IDescriptorListsPageProps & any, any> {
protected static needs = [
({ location: { query: { p: pageCurrent, l: pageSize, s: pageSort, d: pageDir } } }) => loadDescriptors(pageCurrent, pageSize, pageSort, {}, pageDir),
({ location: { query: { p: pageCurrent, l: pageSize, s: pageSort, d: pageDir } } }) => loadDescriptors(pageCurrent, pageSize || 50, pageSort, {}, pageDir),
listCrops,
];
......
Supports Markdown
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