diff --git a/js/apps/admin-ui/src/components/form/FixedButtonGroup.tsx b/js/apps/admin-ui/src/components/form/FixedButtonGroup.tsx index c7c496642371..0c8159357d24 100644 --- a/js/apps/admin-ui/src/components/form/FixedButtonGroup.tsx +++ b/js/apps/admin-ui/src/components/form/FixedButtonGroup.tsx @@ -7,7 +7,9 @@ import style from "./fixed-buttons.module.css"; type FixedButtonGroupProps = ActionGroupProps & { name: string; save?: () => void; + saveText?: string; reset?: () => void; + resetText?: string; isSubmit?: boolean; isActive?: boolean; }; @@ -15,7 +17,9 @@ type FixedButtonGroupProps = ActionGroupProps & { export const FixedButtonsGroup = ({ name, save, + saveText, reset, + resetText, isSubmit = false, isActive = true, children, @@ -31,7 +35,7 @@ export const FixedButtonsGroup = ({ onClick={() => save?.()} type={isSubmit ? "submit" : "button"} > - {t("save")} + {!saveText ? t("save") : saveText} )} {reset && ( @@ -41,7 +45,7 @@ export const FixedButtonsGroup = ({ variant="link" onClick={() => reset()} > - {t("revert")} + {!resetText ? t("revert") : resetText} )} {children} diff --git a/js/apps/admin-ui/src/user/UserForm.tsx b/js/apps/admin-ui/src/user/UserForm.tsx index 87427ac9d296..a2b348b2964f 100644 --- a/js/apps/admin-ui/src/user/UserForm.tsx +++ b/js/apps/admin-ui/src/user/UserForm.tsx @@ -337,7 +337,9 @@ export const UserForm = ({