[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-android] 02/02: [wallet] Translate manual withdrawal to DD3
From: |
gnunet |
Subject: |
[taler-taler-android] 02/02: [wallet] Translate manual withdrawal to DD37 |
Date: |
Tue, 07 Nov 2023 15:08:14 +0100 |
This is an automated email from the git hooks/post-receive script.
torsten-grote pushed a commit to branch master
in repository taler-android.
commit 0aba291fef07b4cf0aaa1f510292ef98aae8527b
Author: Iván Ávalos <avalos@disroot.org>
AuthorDate: Thu Nov 2 21:51:54 2023 -0600
[wallet] Translate manual withdrawal to DD37
---
.../java/net/taler/wallet/transactions/ActionButtonComposable.kt | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git
a/wallet/src/main/java/net/taler/wallet/transactions/ActionButtonComposable.kt
b/wallet/src/main/java/net/taler/wallet/transactions/ActionButtonComposable.kt
index 778b985..4e4bbe0 100644
---
a/wallet/src/main/java/net/taler/wallet/transactions/ActionButtonComposable.kt
+++
b/wallet/src/main/java/net/taler/wallet/transactions/ActionButtonComposable.kt
@@ -30,8 +30,8 @@ import androidx.compose.ui.res.stringResource
import net.taler.wallet.R
import net.taler.wallet.transactions.TransactionMajorState.Pending
import net.taler.wallet.transactions.TransactionMinorState.BankConfirmTransfer
+import net.taler.wallet.transactions.TransactionMinorState.ExchangeWaitReserve
import net.taler.wallet.transactions.TransactionMinorState.KycRequired
-import net.taler.wallet.transactions.WithdrawalDetails.ManualTransfer
interface ActionListener {
enum class Type {
@@ -49,13 +49,11 @@ fun ActionButton(
tx: TransactionWithdrawal,
listener: ActionListener,
) {
- // TODO: translate manual transfer to DD37 equivalent
- if (tx.error == null && !tx.confirmed && tx.withdrawalDetails is
ManualTransfer) {
- ConfirmManualButton(modifier, tx, listener)
- } else if (tx.txState.major == Pending) {
+ if (tx.txState.major == Pending) {
when (tx.txState.minor) {
KycRequired -> KycButton(modifier, tx, listener)
BankConfirmTransfer -> ConfirmBankButton(modifier, tx, listener)
+ ExchangeWaitReserve -> ConfirmManualButton(modifier, tx, listener)
else -> {}
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.