mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
fix(settings): update workspace creation display logic to show reason only when creation is not allowed
This commit is contained in:
@@ -401,14 +401,14 @@ export default function SettingsPage({ billingOnly = false }: { billingOnly?: bo
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
<div className="rounded-lg border bg-muted/30 p-4 space-y-2">
|
||||
<p className="text-sm font-medium">Workspace creation</p>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{billing.workspaceCreation.canCreateWorkspace
|
||||
? 'This account can create workspaces.'
|
||||
: billing.workspaceCreation.reason || 'Upgrade to create another workspace.'}
|
||||
</p>
|
||||
</div>
|
||||
{!billing.workspaceCreation.canCreateWorkspace ? (
|
||||
<div className="rounded-lg border bg-muted/30 p-4 space-y-2">
|
||||
<p className="text-sm font-medium">Workspace creation</p>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{billing.workspaceCreation.reason || 'Upgrade to create another workspace.'}
|
||||
</p>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
<div className="flex flex-col sm:flex-row gap-3">
|
||||
{billing.subscription.hasActiveSubscription && billing.portalAvailable ? (
|
||||
|
||||
Reference in New Issue
Block a user