mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 05:17:36 -02:30
feat: display token description on user tokens list page
This commit is contained in:
@@ -134,6 +134,10 @@ function UserTokenList() {
|
|||||||
name: t`Application name`,
|
name: t`Application name`,
|
||||||
key: 'application__name',
|
key: 'application__name',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: t`Description`,
|
||||||
|
key: 'description',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: t`Scope`,
|
name: t`Scope`,
|
||||||
key: 'scope',
|
key: 'scope',
|
||||||
@@ -181,6 +185,7 @@ function UserTokenList() {
|
|||||||
headerRow={
|
headerRow={
|
||||||
<HeaderRow qsConfig={QS_CONFIG}>
|
<HeaderRow qsConfig={QS_CONFIG}>
|
||||||
<HeaderCell sortKey="application__name">{t`Application Name`}</HeaderCell>
|
<HeaderCell sortKey="application__name">{t`Application Name`}</HeaderCell>
|
||||||
|
<HeaderCell sortKey="description">{t`Description`}</HeaderCell>
|
||||||
<HeaderCell sortKey="scope">{t`Scope`}</HeaderCell>
|
<HeaderCell sortKey="scope">{t`Scope`}</HeaderCell>
|
||||||
<HeaderCell sortKey="expires">{t`Expires`}</HeaderCell>
|
<HeaderCell sortKey="expires">{t`Expires`}</HeaderCell>
|
||||||
</HeaderRow>
|
</HeaderRow>
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ function UserTokenListItem({ token, isSelected, onSelect, rowIndex }) {
|
|||||||
: t`Personal access token`}
|
: t`Personal access token`}
|
||||||
</Link>
|
</Link>
|
||||||
</Td>
|
</Td>
|
||||||
|
<Td dataLabel={t`Description`} id={`token-description-${token.id}`}>
|
||||||
|
{toTitleCase(token.description)}
|
||||||
|
</Td>
|
||||||
<Td dataLabel={t`Scope`} id={`token-scope-${token.id}`}>
|
<Td dataLabel={t`Scope`} id={`token-scope-${token.id}`}>
|
||||||
{toTitleCase(token.scope)}
|
{toTitleCase(token.scope)}
|
||||||
</Td>
|
</Td>
|
||||||
|
|||||||
Reference in New Issue
Block a user