Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed May 27, 2024
2 parents 4308901 + 915e258 commit 9bb00fb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const String kAppLargeTestUrl = 'https://testv5.invoicing.co';
const String kFlutterDemoUrl = 'https://demo.invoiceninja.com';
const String kReactDemoUrl = 'https://react.invoicing.co/demo';
const String kWhiteLabelUrl =
'https://app.invoiceninja.com/buy_now/?account_key=AsFmBAeLXF0IKf7tmi0eiyZfmWW9hxMT&product_id=3';
'https://invoiceninja.invoicing.co/client/subscriptions/O5xe7Rwd7r/purchase?account_key=AsFmBAeLXF0IKf7tmi0eiyZfmWW9hxMT&product_id=3';
const String kPrivacyPolicyURL = 'https://www.invoiceninja.com/privacy-policy';
const String kTermsOfServiceURL = 'https://www.invoiceninja.com/terms';
const String kBankingURL = 'https://invoiceninja.com/banking';
Expand Down
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.isDisconnected
? ' • ${localization!.disconnected}'
(bankAccount.disabledUpstream
? ' • ${localization!.disconnected.toUpperCase()}'
: '')),
EntityStateLabel(bankAccount),
],
Expand Down
22 changes: 20 additions & 2 deletions lib/ui/bank_account/view/bank_account_view.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import 'package:flutter/material.dart';
import 'package:invoiceninja_flutter/data/models/entities.dart';
import 'package:invoiceninja_flutter/data/models/models.dart';
import 'package:invoiceninja_flutter/redux/bank_account/bank_account_actions.dart';
import 'package:invoiceninja_flutter/redux/transaction/transaction_selectors.dart';
import 'package:invoiceninja_flutter/ui/app/FieldGrid.dart';
import 'package:invoiceninja_flutter/ui/app/buttons/elevated_button.dart';
import 'package:invoiceninja_flutter/ui/app/entities/entity_list_tile.dart';
import 'package:invoiceninja_flutter/ui/app/entity_header.dart';
import 'package:invoiceninja_flutter/ui/app/lists/list_divider.dart';
import 'package:invoiceninja_flutter/ui/app/scrollable_listview.dart';
import 'package:invoiceninja_flutter/ui/bank_account/view/bank_account_view_vm.dart';
import 'package:invoiceninja_flutter/ui/app/view_scaffold.dart';
import 'package:invoiceninja_flutter/utils/formatting.dart';
import 'package:invoiceninja_flutter/utils/icons.dart';
import 'package:invoiceninja_flutter/utils/localization.dart';
import 'package:invoiceninja_flutter/utils/strings.dart';

Expand Down Expand Up @@ -40,12 +43,27 @@ class _BankAccountViewState extends State<BankAccountView> {
onBackPressed: () => viewModel.onBackPressed(),
body: ScrollableListView(
children: <Widget>[
if (bankAccount.isConnected)
if (bankAccount.isConnected) ...[
EntityHeader(
entity: bankAccount,
label: localization.balance,
value: formatNumber(bankAccount.balance, context),
),
if (bankAccount.isDisconnected) ...[
ListDivider(),
Padding(
padding: const EdgeInsets.only(left: 20, right: 20, bottom: 20),
child: AppButton(
label: localization.reconnect.toUpperCase(),
onPressed: () {
handleBankAccountAction(
context, [bankAccount], EntityAction.reconnect);
},
iconData: getEntityActionIcon(EntityAction.reconnect),
),
),
],
],
ListDivider(),
EntitiesListTile(
entity: bankAccount,
Expand Down

0 comments on commit 9bb00fb

Please sign in to comment.