mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
fix(ui): badge the Model Access Group Budgets tab as Beta rather than New
This commit is contained in:
parent
934edbab1f
commit
797a4dcbfe
1 changed files with 1 additions and 9 deletions
|
|
@ -9,7 +9,6 @@ import { useUISettings } from "@/app/(dashboard)/hooks/uiSettings/useUISettings"
|
|||
import { all_admin_roles, internalUserRoles } from "@/utils/roles";
|
||||
import { canCreateModels } from "@/utils/modelPermissions";
|
||||
import BetaBadge from "@/components/BetaBadge";
|
||||
import NewBadge from "@/components/common_components/NewBadge";
|
||||
import CostOptimizationFeedbackBanner from "@/components/molecules/cost_optimization_feedback_banner";
|
||||
import ModelInfoView from "@/components/model_info_view";
|
||||
import TeamInfoView from "@/components/team/TeamInfo";
|
||||
|
|
@ -125,20 +124,13 @@ export default function ModelsAndEndpointsPage() {
|
|||
const allModelsLabel = isAdmin ? "All Models" : "Your Models";
|
||||
const tabLabel = (slug: "" | ModelTabSlug): React.ReactNode => {
|
||||
if (!slug) return allModelsLabel;
|
||||
if (slug === "auto-routers") {
|
||||
if (slug === "auto-routers" || slug === "access-group-budgets") {
|
||||
return (
|
||||
<span className="flex items-center gap-2">
|
||||
{TAB_LABELS[slug]} <BetaBadge />
|
||||
</span>
|
||||
);
|
||||
}
|
||||
if (slug === "access-group-budgets") {
|
||||
return (
|
||||
<span className="flex items-center gap-2">
|
||||
{TAB_LABELS[slug]} <NewBadge />
|
||||
</span>
|
||||
);
|
||||
}
|
||||
return TAB_LABELS[slug];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue