Fixes for pro/trial plan
This commit is contained in:
parent
5553bb1585
commit
b08f661a55
|
|
@ -270,7 +270,7 @@ class _InvoiceEmailViewState extends State<InvoiceEmailView>
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (state.isProPlan || state.isTrial)
|
if (state.isProPlan)
|
||||||
ColoredBox(
|
ColoredBox(
|
||||||
color: Theme.of(context).canvasColor,
|
color: Theme.of(context).canvasColor,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|
|
||||||
|
|
@ -678,7 +678,7 @@ class _MenuDrawerState extends State<MenuDrawer> {
|
||||||
icon: getEntityIcon(EntityType.transaction),
|
icon: getEntityIcon(EntityType.transaction),
|
||||||
title: localization.transactions,
|
title: localization.transactions,
|
||||||
),
|
),
|
||||||
if ((state.isProPlan || state.isTrial) &&
|
if (state.isProPlan &&
|
||||||
state.userCompany.canViewReports)
|
state.userCompany.canViewReports)
|
||||||
DrawerTile(
|
DrawerTile(
|
||||||
company: company,
|
company: company,
|
||||||
|
|
|
||||||
|
|
@ -517,7 +517,7 @@ class _AccountOverview extends StatelessWidget {
|
||||||
child: ListDivider(),
|
child: ListDivider(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
if (state.isProPlan || state.isTrial)
|
if (state.isProPlan)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
child: Row(children: [
|
child: Row(children: [
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ class _InvoiceDesignState extends State<InvoiceDesign>
|
||||||
FormCard(
|
FormCard(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
if (state.isProPlan || state.isTrial) ...[
|
if (state.isProPlan) ...[
|
||||||
if (company.isModuleEnabled(EntityType.invoice)) ...[
|
if (company.isModuleEnabled(EntityType.invoice)) ...[
|
||||||
DesignPicker(
|
DesignPicker(
|
||||||
label: localization.invoiceDesign,
|
label: localization.invoiceDesign,
|
||||||
|
|
|
||||||
|
|
@ -313,7 +313,7 @@ class _TemplatesAndRemindersState extends State<TemplatesAndReminders>
|
||||||
final settings = viewModel.settings;
|
final settings = viewModel.settings;
|
||||||
final template = widget.viewModel.selectedTemplate;
|
final template = widget.viewModel.selectedTemplate;
|
||||||
final company = state.company;
|
final company = state.company;
|
||||||
final enableCustomEmail = state.isProPlan || state.isTrial;
|
final enableCustomEmail = state.isProPlan;
|
||||||
|
|
||||||
return EditScaffold(
|
return EditScaffold(
|
||||||
title: localization.templatesAndReminders,
|
title: localization.templatesAndReminders,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue