1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-09 07:45:22 +02:00

feat(ui): ui change for create access token EE-3541 (#7366)

* ui change for create access token
This commit is contained in:
Richard Wei 2022-08-01 10:08:45 +12:00 committed by GitHub
parent 0ba10b44ec
commit d4d80ed8f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View file

@ -74,18 +74,16 @@ export function CreateAccessToken({
/>
</FormControl>
<div className="row mt-5">
<div className="col-sm-12">
<Button
disabled={!!errorText || !!accessToken}
onClick={() => generateAccessToken()}
>
{t('Add access token')}
</Button>
</div>
<Button
disabled={!!errorText || !!accessToken}
onClick={() => generateAccessToken()}
>
{t('Add access token')}
</Button>
</div>
</div>
{accessToken && (
<>
<div className="mt-5">
<FormSectionTitle>
<Trans ns={translationNS}>New access token</Trans>
</FormSectionTitle>
@ -106,7 +104,7 @@ export function CreateAccessToken({
>
<Trans ns={translationNS}>Done</Trans>
</Button>
</>
</div>
)}
</WidgetBody>
</Widget>