mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-06 06:24:16 +00:00
Merge pull request #3901 from BerriAI/admin_ui_add_logout_sso
[Feat] Implement Logout Admin UI
This commit is contained in:
@@ -39,7 +39,9 @@ const Navbar: React.FC<NavbarProps> = ({
|
||||
|
||||
// const userColors = require('./ui_colors.json') || {};
|
||||
const isLocal = process.env.NODE_ENV === "development";
|
||||
const proxyBaseUrl = isLocal ? "http://localhost:4000" : null;
|
||||
const imageUrl = isLocal ? "http://localhost:4000/get_image" : "/get_image";
|
||||
const logoutUrl = proxyBaseUrl ? `${proxyBaseUrl}` : `/`;
|
||||
|
||||
const items: MenuProps["items"] = [
|
||||
{
|
||||
@@ -52,6 +54,14 @@ const Navbar: React.FC<NavbarProps> = ({
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: "2",
|
||||
label: (
|
||||
<Link href={logoutUrl}>
|
||||
<p>Logout</p>
|
||||
</Link>
|
||||
),
|
||||
}
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user