Skip to content

Commit 7b7d489

Browse files
authored
fix(webapp): selfhost apikey role cta (#4586)
1 parent 480bede commit 7b7d489

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.apikeys

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.apikeys/route.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,18 @@ function ApiKeyScopeUpgradeCta({ show }: { show: boolean }) {
11461146
const organization = useOrganization();
11471147
const showSelfServe = useShowSelfServe();
11481148

1149-
if (!show || !isManagedCloud) return null;
1149+
if (!show) return null;
1150+
1151+
if (!isManagedCloud) {
1152+
return (
1153+
<div className="text-right">
1154+
<Paragraph variant="small">
1155+
Restricted API keys aren't available on your current plan. Contact your administrator to
1156+
enable them.
1157+
</Paragraph>
1158+
</div>
1159+
);
1160+
}
11501161

11511162
return (
11521163
<div className="flex flex-col items-end text-right">

0 commit comments

Comments
 (0)