forked from phoenix/litellm-mirror
build(ui/): add team admins via proxy ui
This commit is contained in:
parent
07ba537970
commit
5be647dd76
2 changed files with 7 additions and 8 deletions
|
@ -314,13 +314,6 @@ const AdminPanel: React.FC<AdminPanelProps> = ({
|
||||||
className="px-3 py-2 border rounded-md w-full"
|
className="px-3 py-2 border rounded-md w-full"
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
{/* <div className="text-center mb-4">OR</div>
|
|
||||||
<Form.Item label="User ID" name="user_id" className="mb-4">
|
|
||||||
<Input
|
|
||||||
name="user_id"
|
|
||||||
className="px-3 py-2 border rounded-md w-full"
|
|
||||||
/>
|
|
||||||
</Form.Item> */}
|
|
||||||
</>
|
</>
|
||||||
<div style={{ textAlign: "right", marginTop: "10px" }} className="mt-4">
|
<div style={{ textAlign: "right", marginTop: "10px" }} className="mt-4">
|
||||||
<Button2 htmlType="submit">Add member</Button2>
|
<Button2 htmlType="submit">Add member</Button2>
|
||||||
|
|
|
@ -381,7 +381,7 @@ const Team: React.FC<TeamProps> = ({
|
||||||
if (accessToken != null && teams != null) {
|
if (accessToken != null && teams != null) {
|
||||||
message.info("Adding Member");
|
message.info("Adding Member");
|
||||||
const user_role: Member = {
|
const user_role: Member = {
|
||||||
role: "user",
|
role: formValues.role,
|
||||||
user_email: formValues.user_email,
|
user_email: formValues.user_email,
|
||||||
user_id: formValues.user_id,
|
user_id: formValues.user_id,
|
||||||
};
|
};
|
||||||
|
@ -809,6 +809,12 @@ const Team: React.FC<TeamProps> = ({
|
||||||
className="px-3 py-2 border rounded-md w-full"
|
className="px-3 py-2 border rounded-md w-full"
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<Form.Item label="Member Role" name="role" className="mb-4">
|
||||||
|
<Select2 defaultValue="user">
|
||||||
|
<Select2.Option value="user">user</Select2.Option>
|
||||||
|
<Select2.Option value="admin">admin</Select2.Option>
|
||||||
|
</Select2>
|
||||||
|
</Form.Item>
|
||||||
</>
|
</>
|
||||||
<div style={{ textAlign: "right", marginTop: "10px" }}>
|
<div style={{ textAlign: "right", marginTop: "10px" }}>
|
||||||
<Button2 htmlType="submit">Add member</Button2>
|
<Button2 htmlType="submit">Add member</Button2>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue