{i18n._(t`Total Nodes`)}
{totalNodes}
-
-
-
,
- canAdd ? (
-
- ) : null,
+ ...(canAdd
+ ? [
+
,
+ ]
+ : []),
]}
/>
)}
diff --git a/awx/ui_next/src/screens/User/UserList/UserListItem.jsx b/awx/ui_next/src/screens/User/UserList/UserListItem.jsx
index 723b38bbe0..a3244895a6 100644
--- a/awx/ui_next/src/screens/User/UserList/UserListItem.jsx
+++ b/awx/ui_next/src/screens/User/UserList/UserListItem.jsx
@@ -4,16 +4,17 @@ import { withI18n } from '@lingui/react';
import { t } from '@lingui/macro';
import {
Button,
+ DataListAction,
+ DataListCell,
DataListCheck,
DataListItem,
- DataListItemRow,
DataListItemCells,
+ DataListItemRow,
Tooltip,
} from '@patternfly/react-core';
import { Link } from 'react-router-dom';
import { PencilAltIcon } from '@patternfly/react-icons';
-import DataListCell from '@components/DataListCell';
import { User } from '@types';
class UserListItem extends React.Component {
@@ -38,7 +39,7 @@ class UserListItem extends React.Component {
/>
+
{user.username}
@@ -46,7 +47,7 @@ class UserListItem extends React.Component {
{user.first_name && (
- {i18n._(t`First Name`)}
+ {i18n._(t`First Name`)}
{user.first_name}
)}
@@ -54,26 +55,30 @@ class UserListItem extends React.Component {
{user.last_name && (
- {i18n._(t`Last Name`)}
+ {i18n._(t`Last Name`)}
{user.last_name}
)}
,
-
- {user.summary_fields.user_capabilities.edit && (
-
-
-
- )}
- ,
]}
/>
+
+ {user.summary_fields.user_capabilities.edit && (
+
+
+
+ )}
+
);