mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-08 01:15:49 +02:00
fix: small UI fixes to the clone environment modal (#2290)
fix: small UI fixes to the environment modal
This commit is contained in:
parent
7e03fba6cd
commit
09cb61c719
@ -320,7 +320,7 @@ export const EnvironmentCloneModal = ({
|
|||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value={APITokenGeneration.LATER}
|
value={APITokenGeneration.LATER}
|
||||||
control={<Radio />}
|
control={<Radio />}
|
||||||
label="Generate an API token later"
|
label="I want to generate an API token later"
|
||||||
/>
|
/>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value={APITokenGeneration.NOW}
|
value={APITokenGeneration.NOW}
|
||||||
@ -329,19 +329,20 @@ export const EnvironmentCloneModal = ({
|
|||||||
/>
|
/>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
<StyledInlineContainer>
|
||||||
|
<StyledInputSecondaryDescription>
|
||||||
|
A new Server-side SDK (CLIENT) API token
|
||||||
|
will be generated for the cloned
|
||||||
|
environment, so you can get started right
|
||||||
|
away.
|
||||||
|
</StyledInputSecondaryDescription>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={
|
condition={
|
||||||
apiTokenGeneration ===
|
apiTokenGeneration ===
|
||||||
APITokenGeneration.NOW
|
APITokenGeneration.NOW
|
||||||
}
|
}
|
||||||
show={
|
show={
|
||||||
<StyledInlineContainer>
|
<>
|
||||||
<StyledInputSecondaryDescription>
|
|
||||||
A new Server-side SDK (CLIENT) API
|
|
||||||
token will be generated for the
|
|
||||||
cloned environment, so you can get
|
|
||||||
started right away.
|
|
||||||
</StyledInputSecondaryDescription>
|
|
||||||
<StyledInputDescription>
|
<StyledInputDescription>
|
||||||
Which projects do you want this
|
Which projects do you want this
|
||||||
token to give access to?
|
token to give access to?
|
||||||
@ -352,12 +353,15 @@ export const EnvironmentCloneModal = ({
|
|||||||
onChange={setTokenProjects}
|
onChange={setTokenProjects}
|
||||||
error={errors.projects}
|
error={errors.projects}
|
||||||
onFocus={() =>
|
onFocus={() =>
|
||||||
clearError(ErrorField.PROJECTS)
|
clearError(
|
||||||
|
ErrorField.PROJECTS
|
||||||
|
)
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</StyledInlineContainer>
|
</StyledInlineContainer>
|
||||||
}
|
|
||||||
/>
|
|
||||||
</StyledSecondaryContainer>
|
</StyledSecondaryContainer>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user