mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: show api token on playground (#7753)
Fix CR condition preventing API token from showing up
This commit is contained in:
parent
f89b8249f7
commit
c37c86f7a0
@ -119,6 +119,9 @@ test(
|
|||||||
'combobox',
|
'combobox',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
expect(tokenInput).toHaveValue(
|
||||||
|
'default:development.964a287e1b728cb5f4f3e0120df92cb5',
|
||||||
|
);
|
||||||
expect(projectInput).toBeDisabled();
|
expect(projectInput).toBeDisabled();
|
||||||
expect(environmentInput).toBeDisabled();
|
expect(environmentInput).toBeDisabled();
|
||||||
await within(projectAutocomplete).findByText('Default');
|
await within(projectAutocomplete).findByText('Default');
|
||||||
|
@ -242,7 +242,7 @@ export const PlaygroundConnectionFieldset: FC<
|
|||||||
<Box>
|
<Box>
|
||||||
<StyledInput
|
<StyledInput
|
||||||
label='API token'
|
label='API token'
|
||||||
value={token || changeRequest ? ' ' : ''}
|
value={token || (changeRequest ? ' ' : '')}
|
||||||
onChange={onSetToken}
|
onChange={onSetToken}
|
||||||
type={'text'}
|
type={'text'}
|
||||||
error={Boolean(tokenError)}
|
error={Boolean(tokenError)}
|
||||||
|
Loading…
Reference in New Issue
Block a user