From 15baaf68db76ebcdb8f173b8e2b090636753994d Mon Sep 17 00:00:00 2001 From: tanjiro <56165694+NANDINI-star@users.noreply.github.com> Date: Sun, 31 Aug 2025 17:09:11 +0900 Subject: [PATCH] back to logs added conditionally --- .../src/components/templates/key_info_view.tsx | 6 ++++-- ui/litellm-dashboard/src/components/view_logs/index.tsx | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx index b4a74bf846b..f5e18b68046 100644 --- a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx +++ b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx @@ -43,6 +43,7 @@ interface KeyInfoViewProps { teams: any[] | null premiumUser: boolean setAccessToken?: (token: string) => void + backButtonText?: string } export default function KeyInfoView({ @@ -57,6 +58,7 @@ export default function KeyInfoView({ onDelete, premiumUser, setAccessToken, + backButtonText = "Back to Keys", }: KeyInfoViewProps) { const [isEditing, setIsEditing] = useState(false) const [form] = Form.useForm() @@ -92,7 +94,7 @@ export default function KeyInfoView({ return (
Key not found
@@ -261,7 +263,7 @@ export default function KeyInfoView({
{currentKeyData.key_alias || "API Key"} diff --git a/ui/litellm-dashboard/src/components/view_logs/index.tsx b/ui/litellm-dashboard/src/components/view_logs/index.tsx index b227d493aa0..72ad8732b6b 100644 --- a/ui/litellm-dashboard/src/components/view_logs/index.tsx +++ b/ui/litellm-dashboard/src/components/view_logs/index.tsx @@ -500,6 +500,7 @@ export default function SpendLogsTable({ teams={allTeams} onClose={() => setSelectedKeyIdInfoView(null)} premiumUser={premiumUser} + backButtonText="Back to Logs" /> ) : selectedSessionId ? (