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