chore: Admin unlocking user, also verify workflow steps (#20613)
This commit is contained in:
1 parent
1467b0b768
commit
c43c5a0604
4 files changed
+56
No files matched your search
@@ -119,6 +119,12 @@ function UsersTableBare() {
|
||||
},
|
||||
});
|
||||
|
||||
const verifyWorkflows = trpc.viewer.admin.verifyWorkflows.useMutation({
|
||||
onSuccess: () => {
|
||||
showToast("Workflows verified", "success");
|
||||
},
|
||||
});
|
||||
|
||||
const handleImpersonateUser = async (username: string | null) => {
|
||||
await signIn("impersonation-auth", { username: username, callbackUrl: `${WEBAPP_URL}/event-types` });
|
||||
};
|
||||
@@ -236,6 +242,12 @@ function UsersTableBare() {
|
||||
onClick: () => lockUserAccount.mutate({ userId: user.id, locked: !user.locked }),
|
||||
icon: "lock",
|
||||
},
|
||||
{
|
||||
id: "verify-workflows",
|
||||
label: "Verify workflows",
|
||||
onClick: () => verifyWorkflows.mutate({ userId: user.id }),
|
||||
icon: "check",
|
||||
},
|
||||
{
|
||||
id: "impersonation",
|
||||
label: "Impersonate",
|
||||
|
||||
Reference in new issue
Block a user