mirror of
https://github.com/keycloak/keycloak.git
synced 2026-02-04 22:39:09 -06:00
Add revert button to client credentials form
Signed-off-by: Tero Saarni <tero.saarni@est.tech>
This commit is contained in:
committed by
Marek Posolda
parent
cb4c533464
commit
47b91b995d
Binary file not shown.
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 52 KiB |
@@ -60,6 +60,7 @@ export const Credentials = ({ client, save, refresh }: CredentialsProps) => {
|
||||
control,
|
||||
formState: { isDirty },
|
||||
handleSubmit,
|
||||
reset,
|
||||
} = useFormContext<FormFields>();
|
||||
|
||||
const clientAuthenticatorType = useWatch({
|
||||
@@ -222,6 +223,9 @@ export const Credentials = ({ client, save, refresh }: CredentialsProps) => {
|
||||
<Button variant="primary" type="submit" isDisabled={!isDirty}>
|
||||
{t("save")}
|
||||
</Button>
|
||||
<Button variant="link" onClick={() => reset()}>
|
||||
{t("revert")}
|
||||
</Button>
|
||||
</ActionGroup>
|
||||
</CardBody>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user