mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
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:
@@ -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: () {
|
||||
|
||||
@@ -193,7 +193,7 @@ class SendCardState extends State<SendCard>
|
||||
? sendViewModel.allAmountValidator
|
||||
: sendViewModel
|
||||
.amountValidator),
|
||||
Positioned(
|
||||
if (!sendViewModel.isBatchSending) Positioned(
|
||||
top: 2,
|
||||
right: 0,
|
||||
child: Container(
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user