mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
Improve dialogue box
This commit is contained in:
parent
a60016c16a
commit
b962ce9b09
2 changed files with 11 additions and 4 deletions
|
|
@ -97,7 +97,9 @@ function ConfirmDialog({ action, serverName, isCurrentlyActive, onConfirm, onCan
|
|||
</h3>
|
||||
<p className="text-sm text-gray-500 mb-4">
|
||||
Are you sure you want to {action} <span className="font-medium text-gray-700">"{serverName}"</span>?{" "}
|
||||
{isApprove ? "This will make it active and available for use." : rejectBody}
|
||||
{isApprove
|
||||
? "This will activate the server. The submitting user will see it in their MCP Servers list once approved."
|
||||
: rejectBody}
|
||||
</p>
|
||||
{!isApprove && (
|
||||
<textarea
|
||||
|
|
|
|||
|
|
@ -469,7 +469,12 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({
|
|||
}
|
||||
|
||||
NotificationsManager.success(
|
||||
isAdmin ? "MCP Server created successfully" : "MCP Server submitted for admin review",
|
||||
isAdmin
|
||||
? "MCP Server created successfully"
|
||||
: {
|
||||
message: "MCP Server submitted for admin review",
|
||||
description: "Once an admin approves it, the server will appear in your MCP Servers list.",
|
||||
},
|
||||
);
|
||||
form.resetFields();
|
||||
setCostConfig({});
|
||||
|
|
@ -622,8 +627,8 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({
|
|||
>
|
||||
{!isAdmin && (
|
||||
<div className="rounded-md bg-blue-50 border border-blue-200 px-4 py-3 text-sm text-blue-800">
|
||||
Your submission will be sent for admin review before it becomes active. Note: the request must be made
|
||||
with a team-scoped API key.
|
||||
Your submission will be sent for admin review. Once approved, the server will appear in your MCP Servers
|
||||
list. The request must be made with a team-scoped API key.
|
||||
</div>
|
||||
)}
|
||||
<div className="grid grid-cols-1 gap-6">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue