mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
add: making organizations a select instead of read only badges
This commit is contained in:
parent
50a52f62e3
commit
5a8f910fe3
1 changed files with 12 additions and 3 deletions
|
|
@ -491,7 +491,7 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({
|
|||
...(secretManagerSettings !== undefined ? { secret_manager_settings: secretManagerSettings } : {}),
|
||||
},
|
||||
...(values.policies?.length > 0 ? { policies: values.policies } : {}),
|
||||
organization_id: values.organization_id,
|
||||
organization_id: values.organization_id ?? "",
|
||||
};
|
||||
|
||||
updateData.max_budget = mapEmptyStringToNull(updateData.max_budget);
|
||||
|
|
@ -1077,8 +1077,17 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({
|
|||
/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="Organization ID" name="organization_id">
|
||||
<Input type="" disabled />
|
||||
<Form.Item label="Organization" name="organization_id">
|
||||
<Select
|
||||
allowClear
|
||||
placeholder="Select an organization"
|
||||
showSearch
|
||||
optionFilterProp="label"
|
||||
options={userOrganizations.map((org) => ({
|
||||
value: org.organization_id,
|
||||
label: org.organization_alias || org.organization_id,
|
||||
}))}
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="Logging Settings" name="logging_settings">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue