Skip to content

Commit

Permalink
changing page size options for indices page
Browse files Browse the repository at this point in the history
Signed-off-by: kohinoor98 <[email protected]>
  • Loading branch information
kohinoor98 committed Nov 16, 2023
1 parent f419eba commit b262a01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/pages/Indices/containers/Indices/Indices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
import { ContentPanel, ContentPanelActions } from "../../../../components/ContentPanel";
import IndexControls from "../../components/IndexControls";
import IndexEmptyPrompt from "../../components/IndexEmptyPrompt";
import { DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_QUERY_PARAMS, indicesColumns } from "../../utils/constants";
import { DEFAULT_PAGE_SIZE_OPTIONS_INDICES, DEFAULT_QUERY_PARAMS, indicesColumns } from "../../utils/constants";
import IndexService from "../../../../services/IndexService";
import CommonService from "../../../../services/CommonService";
import { DataStream, ManagedCatIndex } from "../../../../../server/models/interfaces";
Expand Down Expand Up @@ -214,7 +214,7 @@ export default class Indices extends Component<IndicesProps, IndicesState> {
const pagination: Pagination = {
pageIndex: page,
pageSize: size,
pageSizeOptions: DEFAULT_PAGE_SIZE_OPTIONS,
pageSizeOptions: DEFAULT_PAGE_SIZE_OPTIONS_INDICES,
totalItemCount: totalIndices,
};

Expand Down
1 change: 1 addition & 0 deletions public/pages/Indices/utils/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const renderNumber = (value) => {
};

export const DEFAULT_PAGE_SIZE_OPTIONS = [5, 10, 20, 50];
export const DEFAULT_PAGE_SIZE_OPTIONS_INDICES = [10, 20, 50, 100, 500];

export const DEFAULT_QUERY_PARAMS = {
from: 0,
Expand Down

0 comments on commit b262a01

Please sign in to comment.