mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +02:00
chore: remove apitoken.username (#9448)
Removes usage of the deprecated API token property `username` and uses `tokenName` instead. Affected components: Token table:  Token deletion dialog:  Environment post-clone screen (which is automatically hidden now, so it ... doesn't matter)
This commit is contained in:
parent
143c8a3074
commit
be57f9f8fd
@ -63,8 +63,8 @@ export const RemoveApiTokenButton = ({
|
|||||||
<br />
|
<br />
|
||||||
<StyledUl>
|
<StyledUl>
|
||||||
<li>
|
<li>
|
||||||
<strong>username</strong>:{' '}
|
<strong>name</strong>:{' '}
|
||||||
<code>{token.username}</code>
|
<code>{token.tokenName}</code>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<strong>type</strong>: <code>{token.type}</code>
|
<strong>type</strong>: <code>{token.type}</code>
|
||||||
|
@ -39,7 +39,7 @@ export const useApiTokenTable = (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
Header: 'Token name',
|
Header: 'Token name',
|
||||||
accessor: 'username',
|
accessor: 'tokenName',
|
||||||
Cell: HighlightCell,
|
Cell: HighlightCell,
|
||||||
minWidth: 35,
|
minWidth: 35,
|
||||||
},
|
},
|
||||||
|
@ -29,7 +29,7 @@ export const EnvironmentTokenDialog = ({
|
|||||||
Your new token has been created successfully.
|
Your new token has been created successfully.
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant='body1'>
|
<Typography variant='body1'>
|
||||||
You can also find it as "<strong>{token?.username}</strong>" in the{' '}
|
You can also find it as "<strong>{token?.tokenName}</strong>" in the{' '}
|
||||||
<Link to='/admin/api'>API access page</Link>.
|
<Link to='/admin/api'>API access page</Link>.
|
||||||
</Typography>
|
</Typography>
|
||||||
<UserToken token={token?.secret || ''} />
|
<UserToken token={token?.secret || ''} />
|
||||||
|
@ -5,7 +5,7 @@ import handleErrorResponses from '../httpErrorResponseHandler';
|
|||||||
|
|
||||||
export interface IApiToken {
|
export interface IApiToken {
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
username: string;
|
tokenName: string;
|
||||||
secret: string;
|
secret: string;
|
||||||
type: string;
|
type: string;
|
||||||
project?: string;
|
project?: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user