Skip to content

Fix how we show the upgrade plan button when resource sharing is enabled #1268

@duckduckgrayduck

Description

@duckduckgrayduck

This will become a problem when we merge MuckRock/documentcloud#355

A child org may not have their own plan, but their parent does. We don't correctly show that they have a credit balance inherited from their parent.

We should either show them the balance as if it was their own plan and not show the upgrade button

or

Show them the upgrade button AND show them their balance but state that this is inherited from the parent org.

Determining whether an org is premium or not is done here:

export function isPremiumOrg(org?: Nullable<Org>): boolean {

and the logic for setting the org bar is here

{#if isPremium && active_org.monthly_credits && active_org.credit_reset_date}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions