Fix info box ui

This commit is contained in:
Owen
2026-08-06 14:45:25 -04:00
parent f72252552f
commit a4d77a4fd3
6 changed files with 20 additions and 13 deletions
@@ -4,7 +4,7 @@ import { fetchSiteResourceByNiceId } from "@app/lib/fetchSiteResourceByNiceId";
import { getCachedOrg } from "@app/lib/api/getCachedOrg";
import OrgProvider from "@app/providers/OrgProvider";
import SiteResourceProvider from "@app/providers/SiteResourceProvider";
import SiteResourceInfoBox from "@app/components/SiteResourceInfoBox";
import SiteResourceInfoBox from "@app/components/PrivateResourceInfoBox";
import type { Metadata } from "next";
import { getTranslations } from "next-intl/server";
import { redirect } from "next/navigation";
@@ -105,7 +105,7 @@ export default async function ResourceLayout(props: ResourceLayoutProps) {
}
);
if (!env.flags.disableEnterpriseFeatures) {
if (!env.flags.disableEnterpriseFeatures && resource.mode !== "inference") {
navItems.push({
title: t("maintenanceMode"),
href: `/{orgId}/settings/resources/public/{niceId}/maintenance`