mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-23 08:55:44 +08:00
feat(cloud): display unavailable plans without checkout actions
This commit is contained in:
@@ -430,7 +430,20 @@ export default function CloudPlansDialog({
|
||||
<div className="flex-1">
|
||||
<Benefits plan={plan} spaceURL={spaceURL} />
|
||||
</div>
|
||||
{downgradeBlocked ? null : !canManage ? (
|
||||
{plan.subscription_disabled && (
|
||||
<p className="mt-4 text-xs text-muted-foreground">
|
||||
{t('cloudPlans.subscriptionUnavailableHint')}
|
||||
</p>
|
||||
)}
|
||||
{plan.subscription_disabled && !current ? (
|
||||
<Button
|
||||
className="mt-6 w-full"
|
||||
variant="outline"
|
||||
disabled
|
||||
>
|
||||
{t('cloudPlans.subscriptionUnavailable')}
|
||||
</Button>
|
||||
) : downgradeBlocked ? null : !canManage ? (
|
||||
<Button
|
||||
className="mt-6 w-full"
|
||||
variant="outline"
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface PublicCloudPlan {
|
||||
limits: Record<string, number>;
|
||||
features: string[];
|
||||
is_active: boolean;
|
||||
subscription_disabled?: boolean;
|
||||
sort_order: number;
|
||||
highlight: boolean;
|
||||
chat_history_retention_days: number;
|
||||
|
||||
Reference in New Issue
Block a user