mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
fxes pagination and removes console warnings
This commit is contained in:
parent
e1b6e1509c
commit
5a1810e191
@ -59,7 +59,7 @@ class NavExpandableGroup extends Component {
|
||||
|
||||
NavExpandableGroup.propTypes = {
|
||||
groupId: PropTypes.string.isRequired,
|
||||
groupTitle: PropTypes.string.isRequired,
|
||||
groupTitle: PropTypes.element.isRequired,
|
||||
routes: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
};
|
||||
|
||||
|
||||
@ -4,7 +4,6 @@ import {
|
||||
Pagination as PFPagination,
|
||||
DropdownDirection,
|
||||
} from '@patternfly/react-core';
|
||||
import {} from '@lingui/core';
|
||||
import { t } from '@lingui/macro';
|
||||
|
||||
const AWXPagination = styled(PFPagination)`
|
||||
|
||||
@ -5,7 +5,6 @@ import { Chip } from '@patternfly/react-core';
|
||||
import { Tr, Td } from '@patternfly/react-table';
|
||||
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Detail } from '../../../components/DetailList';
|
||||
|
||||
function TeamRoleListItem({ role, detailUrl, onDisassociate }) {
|
||||
return (
|
||||
@ -19,18 +18,14 @@ function TeamRoleListItem({ role, detailUrl, onDisassociate }) {
|
||||
{role.summary_fields.resource_type_display_name}
|
||||
</Td>
|
||||
<Td dataLabel={t`Role`}>
|
||||
<Detail
|
||||
value={
|
||||
<Chip
|
||||
key={role.name}
|
||||
aria-label={role.name}
|
||||
onClick={() => onDisassociate(role)}
|
||||
isReadOnly={!role.summary_fields.user_capabilities.unattach}
|
||||
>
|
||||
{role.name}
|
||||
</Chip>
|
||||
}
|
||||
/>
|
||||
<Chip
|
||||
key={role.name}
|
||||
aria-label={role.name}
|
||||
onClick={() => onDisassociate(role)}
|
||||
isReadOnly={!role.summary_fields.user_capabilities.unattach}
|
||||
>
|
||||
{role.name}
|
||||
</Chip>
|
||||
</Td>
|
||||
</Tr>
|
||||
);
|
||||
|
||||
@ -39,7 +39,7 @@ function TeamRolesList({ me, team }) {
|
||||
request: fetchRoles,
|
||||
error: contentError,
|
||||
result: {
|
||||
// roleCount,
|
||||
roleCount,
|
||||
roles,
|
||||
isAdminOfOrg,
|
||||
relatedSearchableKeys,
|
||||
@ -140,7 +140,7 @@ function TeamRolesList({ me, team }) {
|
||||
contentError={contentError}
|
||||
hasContentLoading={isLoading || isDisassociateLoading}
|
||||
items={roles}
|
||||
itemCount={0}
|
||||
itemCount={roleCount}
|
||||
pluralizedItemName={t`Team Roles`}
|
||||
qsConfig={QS_CONFIG}
|
||||
toolbarSearchColumns={[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user