CAKE-345 | changed isRemoveButtonShow parameter on isBatchSending in the send_view_model.dart; removed "ALL" button from send card for batch sending

This commit is contained in:
OleksandrSobol
2021-08-06 10:55:50 +03:00
parent 3abb78febf
commit 1dd3f69b1c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class SendPage extends BasePage {
@override
Widget trailing(context) => Observer(builder: (_) {
return sendViewModel.isRemoveButtonShow
return sendViewModel.isBatchSending
? TrailButton(
caption: S.of(context).remove,
onPressed: () {
+1 -1
View File
@@ -193,7 +193,7 @@ class SendCardState extends State<SendCard>
? sendViewModel.allAmountValidator
: sendViewModel
.amountValidator),
Positioned(
if (!sendViewModel.isBatchSending) Positioned(
top: 2,
right: 0,
child: Container(
+1 -1
View File
@@ -68,7 +68,7 @@ abstract class SendViewModelBase with Store {
}
@computed
bool get isRemoveButtonShow => sendItemList.length > 1;
bool get isBatchSending => sendItemList.length > 1;
@computed
String get pendingTransactionFiatAmount {