From 95d883c76f9eb495cbb4059a3abf72a7fda2aed5 Mon Sep 17 00:00:00 2001 From: himanshi1099 <143601879+himanshi1099@users.noreply.github.com> Date: Tue, 21 May 2024 14:51:24 +0530 Subject: [PATCH] Enable user when removing temporary lock (#29618) Closes #29336 Signed-off-by: Himanshi Gupta --- js/apps/admin-ui/src/user/UserForm.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/apps/admin-ui/src/user/UserForm.tsx b/js/apps/admin-ui/src/user/UserForm.tsx index 1e1fc540bc..3a60abf4e1 100644 --- a/js/apps/admin-ui/src/user/UserForm.tsx +++ b/js/apps/admin-ui/src/user/UserForm.tsx @@ -272,6 +272,9 @@ export const UserForm = ({ onChange={(_event, value) => { unLockUser(); setLocked(value); + save({ + enabled: !value, + }); }} isChecked={locked} isDisabled={!locked}