Skip to content

Commit

Permalink
minor(ui): fix role page size from 10 to 50 (#18049)
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-madlani committed Sep 30, 2024
1 parent 312b584 commit b2a2d85
Showing 1 changed file with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,26 @@ import { AxiosError } from 'axios';
import { toLower } from 'lodash';
import React, { FC, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { ReactComponent as IconBotProfile } from '../../../../assets/svg/bot-profile.svg';
import { ReactComponent as EditIcon } from '../../../../assets/svg/edit-new.svg';
import { TERM_ADMIN } from '../../../../constants/constants';
import { PAGE_SIZE_LARGE, TERM_ADMIN } from '../../../../constants/constants';
import { GlobalSettingOptions } from '../../../../constants/GlobalSettings.constants';
import { useLimitStore } from '../../../../context/LimitsProvider/useLimitsStore';
import { EntityType } from '../../../../enums/entity.enum';
import { Role } from '../../../../generated/entity/teams/role';
import { getRoles } from '../../../../rest/userAPI';
import { getRoles } from '../../../../rest/rolesAPIV1';
import { getEntityName } from '../../../../utils/EntityUtils';
import { getSettingPath } from '../../../../utils/RouterUtils';
import { showErrorToast } from '../../../../utils/ToastUtils';
import DescriptionV1 from '../../../common/EntityDescription/DescriptionV1';
import InheritedRolesCard from '../../../common/InheritedRolesCard/InheritedRolesCard.component';
import RolesCard from '../../../common/RolesCard/RolesCard.component';
import TitleBreadcrumb from '../../../common/TitleBreadcrumb/TitleBreadcrumb.component';
import PageLayoutV1 from '../../../PageLayoutV1/PageLayoutV1';
import AccessTokenCard from '../../Users/AccessTokenCard/AccessTokenCard.component';
import './bot-details.less';
import { BotsDetailProps } from './BotDetails.interfaces';

import { ReactComponent as IconBotProfile } from '../../../../assets/svg/bot-profile.svg';
import { useLimitStore } from '../../../../context/LimitsProvider/useLimitsStore';
import { EntityType } from '../../../../enums/entity.enum';
import DescriptionV1 from '../../../common/EntityDescription/DescriptionV1';
import AccessTokenCard from '../../Users/AccessTokenCard/AccessTokenCard.component';

const BotDetails: FC<BotsDetailProps> = ({
botData,
botUserData,
Expand Down Expand Up @@ -88,7 +87,13 @@ const BotDetails: FC<BotsDetailProps> = ({

const fetchRoles = async () => {
try {
const { data } = await getRoles();
const { data } = await getRoles(
'',
undefined,
undefined,
false,
PAGE_SIZE_LARGE
);
setRoles(data);
} catch (err) {
setRoles([]);
Expand Down

0 comments on commit b2a2d85

Please sign in to comment.