mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
show the regenerate button only on update and after creation
This commit is contained in:
parent
ca44733f41
commit
0b4ca50191
@ -274,19 +274,21 @@ const ApiTokenCreateView = () => {
|
||||
primaryAction={
|
||||
canEditInputs && (
|
||||
<Flex justifyContent="center">
|
||||
<ButtonWithRightMargin
|
||||
disabled={isSubmitting}
|
||||
loading={isSubmitting}
|
||||
startIcon={<Refresh />}
|
||||
type="button"
|
||||
size="S"
|
||||
variant="tertiary"
|
||||
>
|
||||
{formatMessage({
|
||||
id: 'global.regenerate',
|
||||
defaultMessage: 'Regenerate',
|
||||
})}
|
||||
</ButtonWithRightMargin>
|
||||
{apiToken?.name && (
|
||||
<ButtonWithRightMargin
|
||||
disabled={isSubmitting}
|
||||
loading={isSubmitting}
|
||||
startIcon={<Refresh />}
|
||||
type="button"
|
||||
size="S"
|
||||
variant="tertiary"
|
||||
>
|
||||
{formatMessage({
|
||||
id: 'global.regenerate',
|
||||
defaultMessage: 'Regenerate',
|
||||
})}
|
||||
</ButtonWithRightMargin>
|
||||
)}
|
||||
<Button
|
||||
disabled={isSubmitting}
|
||||
loading={isSubmitting}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user