mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-23 00:16:25 +01: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 />
|
||||
<StyledUl>
|
||||
<li>
|
||||
<strong>username</strong>:{' '}
|
||||
<code>{token.username}</code>
|
||||
<strong>name</strong>:{' '}
|
||||
<code>{token.tokenName}</code>
|
||||
</li>
|
||||
<li>
|
||||
<strong>type</strong>: <code>{token.type}</code>
|
||||
|
@ -39,7 +39,7 @@ export const useApiTokenTable = (
|
||||
},
|
||||
{
|
||||
Header: 'Token name',
|
||||
accessor: 'username',
|
||||
accessor: 'tokenName',
|
||||
Cell: HighlightCell,
|
||||
minWidth: 35,
|
||||
},
|
||||
|
@ -29,7 +29,7 @@ export const EnvironmentTokenDialog = ({
|
||||
Your new token has been created successfully.
|
||||
</Typography>
|
||||
<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>.
|
||||
</Typography>
|
||||
<UserToken token={token?.secret || ''} />
|
||||
|
@ -5,7 +5,7 @@ import handleErrorResponses from '../httpErrorResponseHandler';
|
||||
|
||||
export interface IApiToken {
|
||||
createdAt: Date;
|
||||
username: string;
|
||||
tokenName: string;
|
||||
secret: string;
|
||||
type: string;
|
||||
project?: string;
|
||||
|
Loading…
Reference in New Issue
Block a user