mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
show sso settings on ui
This commit is contained in:
parent
7a29c08f7b
commit
e35aa444c3
2 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ import { getModelDisplayName } from "./key_team_helpers/fetch_available_models_t
|
||||||
interface SSOSettingsProps {
|
interface SSOSettingsProps {
|
||||||
accessToken: string | null;
|
accessToken: string | null;
|
||||||
possibleUIRoles?: Record<string, Record<string, string>> | null;
|
possibleUIRoles?: Record<string, Record<string, string>> | null;
|
||||||
|
userID?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles }) => {
|
const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles }) => {
|
||||||
|
@ -72,7 +73,7 @@ const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleTextInputChange = (key: string, value: any) => {
|
const handleTextInputChange = (key: string, value: any) => {
|
||||||
setEditedValues(prev => ({
|
setEditedValues((prev: Record<string, any>) => ({
|
||||||
...prev,
|
...prev,
|
||||||
[key]: value
|
[key]: value
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -348,7 +348,7 @@ const ViewUserDashboard: React.FC<ViewUserDashboardProps> = ({
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
|
|
||||||
<TabPanel>
|
<TabPanel>
|
||||||
<SSOSettings accessToken={accessToken} possibleUIRoles={possibleUIRoles} />
|
<SSOSettings accessToken={accessToken} possibleUIRoles={possibleUIRoles} userID={userID}/>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
</TabPanels>
|
</TabPanels>
|
||||||
</TabGroup>
|
</TabGroup>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue