diff --git a/ui/litellm-dashboard/src/components/admins.tsx b/ui/litellm-dashboard/src/components/admins.tsx index 926df9b87..cff4ca2b8 100644 --- a/ui/litellm-dashboard/src/components/admins.tsx +++ b/ui/litellm-dashboard/src/components/admins.tsx @@ -61,6 +61,7 @@ const AdminPanel: React.FC = ({ const [isInstructionsModalVisible, setIsInstructionsModalVisible] = useState(false); const handleAddSSOOk = () => { + setIsAddSSOModalVisible(false); form.resetFields(); }; @@ -71,10 +72,11 @@ const handleAddSSOCancel = () => { }; const handleShowInstructions = (formValues: Record) => { + handleAdminCreate(formValues); + handleSSOUpdate(formValues); setIsAddSSOModalVisible(false); setIsInstructionsModalVisible(true); // Optionally, you can call handleSSOUpdate here with the formValues - // handleSSOUpdate(formValues); }; const handleInstructionsOk = () => { @@ -439,10 +441,17 @@ const handleInstructionsCancel = () => { labelAlign="left" > <> + + + @@ -450,7 +459,7 @@ const handleInstructionsCancel = () => { @@ -458,7 +467,7 @@ const handleInstructionsCancel = () => {