add: making organizations a select instead of read only badges

This commit is contained in:
Ryan Crabbe 2026-04-03 11:54:52 -07:00
parent 50a52f62e3
commit 5a8f910fe3
No known key found for this signature in database

View file

@ -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">