fix(webapp): selfhost apikey role cta (#4586)

This commit is contained in:
Chris Arderne
2026-08-12 13:14:57 +01:00
committed by GitHub
parent 480bede0ad
commit 7b7d48916d
@@ -1146,7 +1146,18 @@ function ApiKeyScopeUpgradeCta({ show }: { show: boolean }) {
const organization = useOrganization();
const showSelfServe = useShowSelfServe();
if (!show || !isManagedCloud) return null;
if (!show) return null;
if (!isManagedCloud) {
return (
<div className="text-right">
<Paragraph variant="small">
Restricted API keys aren't available on your current plan. Contact your administrator to
enable them.
</Paragraph>
</div>
);
}
return (
<div className="flex flex-col items-end text-right">