diff --git a/lib/ui/settings/account_management.dart b/lib/ui/settings/account_management.dart index 00f913043..d78eae3f0 100644 --- a/lib/ui/settings/account_management.dart +++ b/lib/ui/settings/account_management.dart @@ -366,11 +366,13 @@ class _AccountOverview extends StatelessWidget { ), if (state.isHosted) ...[ if (state.isProPlan && account.hasIapPlan) - SizedBox() - else if (state.isProPlan && - !account.hasIapPlan && - supportsInAppPurchase()) - SizedBox() + Padding( + padding: const EdgeInsets.all(20), + child: Text( + localization.useMobileToManagePlan, + textAlign: TextAlign.center, + ), + ) else Padding( padding: const EdgeInsets.only(left: 16, top: 16, right: 16), @@ -387,7 +389,7 @@ class _AccountOverview extends StatelessWidget { ), ), onPressed: () { - if (supportsInAppPurchase()) { + if (supportsInAppPurchase() && !account.hasIapPlan) { showDialog( context: context, builder: (context) => UpgradeDialog(), diff --git a/lib/utils/i18n.dart b/lib/utils/i18n.dart index da9a8f4b6..182b791c7 100644 --- a/lib/utils/i18n.dart +++ b/lib/utils/i18n.dart @@ -18,6 +18,8 @@ mixin LocalizationsProvider on LocaleCodeAware { static final Map> _localizedValues = { 'en': { // STARTER: lang key - do not remove comment + 'use_mobile_to_manage_plan': + 'Use your phone subscription settings to manage your plan', 'show_task_billable': 'Show Task Billable', 'credit_item': 'Credit Item', 'drop_file_here': 'Drop file here', @@ -103261,6 +103263,10 @@ mixin LocalizationsProvider on LocaleCodeAware { _localizedValues[localeCode]['show_task_billable'] ?? _localizedValues['en']['show_task_billable']; + String get useMobileToManagePlan => + _localizedValues[localeCode]['use_mobile_to_manage_plan'] ?? + _localizedValues['en']['use_mobile_to_manage_plan']; + // STARTER: lang field - do not remove comment String lookup(String key) {