From d03a1df517ca35fc683fa0b9132253e5240a5d64 Mon Sep 17 00:00:00 2001 From: liangfung Date: Tue, 21 Jan 2025 00:27:25 +0800 Subject: [PATCH] update --- .../settings/team/components/user-table.tsx | 37 +++++++++++++++---- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/ee/tabby-ui/app/(dashboard)/settings/team/components/user-table.tsx b/ee/tabby-ui/app/(dashboard)/settings/team/components/user-table.tsx index b5fbfa45c34c..0693f6e660b2 100644 --- a/ee/tabby-ui/app/(dashboard)/settings/team/components/user-table.tsx +++ b/ee/tabby-ui/app/(dashboard)/settings/team/components/user-table.tsx @@ -32,7 +32,7 @@ import { DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu' -import { IconMore, IconSpinner } from '@/components/ui/icons' +import { IconInfoCircled, IconMore, IconSpinner } from '@/components/ui/icons' import { Pagination, PaginationContent, @@ -48,6 +48,11 @@ import { TableHeader, TableRow } from '@/components/ui/table' +import { + Tooltip, + TooltipContent, + TooltipTrigger +} from '@/components/ui/tooltip' import LoadingWrapper from '@/components/loading-wrapper' import { UpdateUserRoleDialog } from './user-role-dialog' @@ -311,14 +316,30 @@ function OperationView({ Activate )} - {!user.node.isSsoUser && ( - setOpen(true)} - className="cursor-pointer gap-1" + + + + setOpen(true)} + className="cursor-pointer gap-1" + > + + Reset password + {user.node.isSsoUser && } + + + + + - )} +

Cannot request password reset for SSO users

+ +