Skip to content

Commit

Permalink
Show if a bank account is disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed May 24, 2024
1 parent a60cf14 commit 5eb9c74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/bank_account/bank_account_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ class BankAccountListItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(toTitleCase(bankAccount.type) +
(bankAccount.disabledUpstream
? ' • ${localization!.disabled}'
(bankAccount.isDisconnected
? ' • ${localization!.disconnected}'
: '')),
EntityStateLabel(bankAccount),
],
Expand Down
6 changes: 6 additions & 0 deletions lib/utils/i18n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
static final Map<String, Map<String, String>> _localizedValues = {
'en': {
// STARTER: lang key - do not remove comment
'disconnected': 'Disconnected',
'reconnect': 'Reconnect',
'e_invoice_settings': 'E-Invoice Settings',
'calculate': 'Calculate',
Expand Down Expand Up @@ -115510,6 +115511,11 @@ mixin LocalizationsProvider on LocaleCodeAware {
_localizedValues[localeCode]!['reconnect'] ??
_localizedValues['en']!['reconnect']!;

String get disconnected =>
_localizedValues[localeCode]!['disconnected'] ??
_localizedValues['en']!['disconnected']!;


// STARTER: lang field - do not remove comment

String lookup(String? key, {String? overrideLocaleCode}) {
Expand Down

0 comments on commit 5eb9c74

Please sign in to comment.