From 2165b2447984683672fa4e99f4381e5c48614b73 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 20 Apr 2024 18:19:08 -0700 Subject: [PATCH] fix - show team models / team info in admin ui --- .../src/components/dashboard_default_team.tsx | 19 ++-- .../src/components/user_dashboard.tsx | 7 ++ .../src/components/view_user_team.tsx | 95 +++++++++++++++++++ 3 files changed, 111 insertions(+), 10 deletions(-) create mode 100644 ui/litellm-dashboard/src/components/view_user_team.tsx diff --git a/ui/litellm-dashboard/src/components/dashboard_default_team.tsx b/ui/litellm-dashboard/src/components/dashboard_default_team.tsx index c845ef1508a..98f287ed4c9 100644 --- a/ui/litellm-dashboard/src/components/dashboard_default_team.tsx +++ b/ui/litellm-dashboard/src/components/dashboard_default_team.tsx @@ -34,20 +34,19 @@ const DashboardTeam: React.FC = ({ } else { updatedTeams = teams ? [...teams, defaultTeam] : [defaultTeam]; } + if (userRole === 'App User') return null; return (
Select Team - {userRole !== "App User" && ( - <> - - If you belong to multiple teams, this setting controls which team is used by default when creating new API Keys. - - - Default Team: If no team_id is set for a key, it will be grouped under here. - - - )} + + + If you belong to multiple teams, this setting controls which team is used by default when creating new API Keys. + + + Default Team: If no team_id is set for a key, it will be grouped under here. + + {updatedTeams && updatedTeams.length > 0 ? (