Show API options on trial

This commit is contained in:
Hillel Coren 2021-08-23 13:15:47 +03:00
parent a07bda6331
commit 00597ad55a
2 changed files with 3 additions and 1 deletions

View File

@ -758,6 +758,8 @@ abstract class AppState implements Built<AppState, AppStateBuilder> {
bool get isProPlan => isEnterprisePlan || account.plan == kPlanPro;
bool get isTrial => account.isTrial;
bool get isEnterprisePlan => !isProduction || account.plan == kPlanEnterprise;
//bool get isEnterprisePlan => isSelfHosted || account.plan == kPlanEnterprise;

View File

@ -461,7 +461,7 @@ class _AccountOverview extends StatelessWidget {
child: ListDivider(),
),
],
if (state.isProPlan)
if (state.isProPlan || state.isTrial)
Padding(
padding: const EdgeInsets.all(16),
child: Row(children: [