forked from phoenix/litellm-mirror
UI - invite user flow
This commit is contained in:
parent
5d9f6282ce
commit
5613f9b30a
1 changed files with 5 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
import React, { useState, useEffect } from "react";
|
import React, { useState, useEffect } from "react";
|
||||||
import { Button, Modal, Form, Input, message, Select, InputNumber } from "antd";
|
import { Button, Modal, Form, Input, message, Select, InputNumber } from "antd";
|
||||||
import { Button as Button2 } from "@tremor/react";
|
import { Button as Button2, Text } from "@tremor/react";
|
||||||
import { userCreateCall, modelAvailableCall } from "./networking";
|
import { userCreateCall, modelAvailableCall } from "./networking";
|
||||||
const { Option } = Select;
|
const { Option } = Select;
|
||||||
|
|
||||||
|
@ -74,16 +74,18 @@ const Createuser: React.FC<CreateuserProps> = ({ userID, accessToken, teams }) =
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Button2 className="mx-auto" onClick={() => setIsModalVisible(true)}>
|
<Button2 className="mx-auto" onClick={() => setIsModalVisible(true)}>
|
||||||
+ Create New User
|
+ Invite User
|
||||||
</Button2>
|
</Button2>
|
||||||
<Modal
|
<Modal
|
||||||
title="Create User"
|
title="Invite User"
|
||||||
visible={isModalVisible}
|
visible={isModalVisible}
|
||||||
width={800}
|
width={800}
|
||||||
footer={null}
|
footer={null}
|
||||||
onOk={handleOk}
|
onOk={handleOk}
|
||||||
onCancel={handleCancel}
|
onCancel={handleCancel}
|
||||||
>
|
>
|
||||||
|
<Text className="mb-1">Invite a user to login to the Admin UI and create Keys</Text>
|
||||||
|
<Text className="mb-6"><b>Note: SSO Setup Required for this</b></Text>
|
||||||
<Form
|
<Form
|
||||||
form={form}
|
form={form}
|
||||||
onFinish={handleCreate}
|
onFinish={handleCreate}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue