Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Move Send Invitation Email field under Metadata in both forms

Yuneng Jiang442a5aea0def
diff --git a/ui/litellm-dashboard/src/components/CreateUserButton.tsx b/ui/litellm-dashboard/src/components/CreateUserButton.tsx
index cdfe9fa36e3..9f5c1aa13c6 100644
--- a/ui/litellm-dashboard/src/components/CreateUserButton.tsx
+++ b/ui/litellm-dashboard/src/components/CreateUserButton.tsx
@@ -202,13 +202,6 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
<Form.Item label="User Email" name="user_email">
<TextInput placeholder="" />
</Form.Item>
- <Form.Item
- label="Send invitation email"
- name="send_invite_email"
- valuePropName="checked"
- >
- <Checkbox />
- </Form.Item>
<Form.Item label="User Role" name="user_role">
<Select2>
{possibleUIRoles &&
@@ -232,6 +225,14 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
<Input.TextArea rows={4} placeholder="Enter metadata as JSON" />
</Form.Item>
+ <Form.Item
+ label="Send invitation email"
+ name="send_invite_email"
+ valuePropName="checked"
+ >
+ <Checkbox />
+ </Form.Item>
+
<div style={{ textAlign: "right", marginTop: "10px" }}>
<Button htmlType="submit">Create User</Button>
</div>
@@ -283,13 +284,6 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
<Form.Item label="User Email" name="user_email">
<Input />
</Form.Item>
- <Form.Item
- label="Send invitation email"
- name="send_invite_email"
- valuePropName="checked"
- >
- <Checkbox />
- </Form.Item>
<Form.Item
label={
<span>
@@ -341,6 +335,13 @@ export const CreateUserButton: React.FC<CreateuserProps> = ({
<Form.Item label="Metadata" name="metadata">
<Input.TextArea rows={4} placeholder="Enter metadata as JSON" />
</Form.Item>
+ <Form.Item
+ label="Send invitation email"
+ name="send_invite_email"
+ valuePropName="checked"
+ >
+ <Checkbox />
+ </Form.Item>
<Accordion>
<AccordionHeader>
<Text strong>Personal Key Creation</Text>