CAKE-345 | changed isRemoveButtonShow parameter on isBatchSending in the send_view_model.dart; removed "ALL" button from send card for batch sending
OleksandrSobol committed
Aug 6, 2021 at 10:55 UTC
1dd3f69b1cad9d5d1f25cf96d6774a36fb0a96b4
3 files changed
+3
-3
lib/src/screens/send/send_page.dart
+1
-1
@@ -49,7 +49,7 @@ class SendPage extends BasePage {
49
50
@override
51
Widget trailing(context) => Observer(builder: (_) {
52
- return sendViewModel.isRemoveButtonShow
52
+ return sendViewModel.isBatchSending
53
? TrailButton(
54
caption: S.of(context).remove,
55
onPressed: () {
lib/src/screens/send/widgets/send_card.dart
+1
-1
@@ -193,7 +193,7 @@ class SendCardState extends State<SendCard>
193
? sendViewModel.allAmountValidator
194
: sendViewModel
195
.amountValidator),
196
- Positioned(
196
+ if (!sendViewModel.isBatchSending) Positioned(
197
top: 2,
198
right: 0,
199
child: Container(
lib/view_model/send/send_view_model.dart
+1
-1
@@ -68,7 +68,7 @@ abstract class SendViewModelBase with Store {
68
}
69
70
@computed
71
- bool get isRemoveButtonShow => sendItemList.length > 1;
71
+ bool get isBatchSending => sendItemList.length > 1;
72
73
@computed
74
String get pendingTransactionFiatAmount {