mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 22:58:49 +00:00
Allow cancelling incoming txs for Epiccash
This commit is contained in:
parent
d0cc16a739
commit
ea47e41d90
2 changed files with 3 additions and 5 deletions
|
@ -35,6 +35,7 @@ class TxIcon extends ConsumerWidget {
|
||||||
|
|
||||||
String _getAssetName(
|
String _getAssetName(
|
||||||
bool isCancelled, bool isReceived, bool isPending, IThemeAssets assets) {
|
bool isCancelled, bool isReceived, bool isPending, IThemeAssets assets) {
|
||||||
|
|
||||||
if (!isReceived && transaction.subType == TransactionSubType.mint) {
|
if (!isReceived && transaction.subType == TransactionSubType.mint) {
|
||||||
if (isCancelled) {
|
if (isCancelled) {
|
||||||
return Assets.svg.anonymizeFailed;
|
return Assets.svg.anonymizeFailed;
|
||||||
|
@ -47,7 +48,7 @@ class TxIcon extends ConsumerWidget {
|
||||||
|
|
||||||
if (isReceived) {
|
if (isReceived) {
|
||||||
if (isCancelled) {
|
if (isCancelled) {
|
||||||
return assets.receive;
|
return assets.receiveCancelled;
|
||||||
}
|
}
|
||||||
if (isPending) {
|
if (isPending) {
|
||||||
return assets.receivePending;
|
return assets.receivePending;
|
||||||
|
|
|
@ -358,8 +358,6 @@ class _TransactionDetailsViewState
|
||||||
final currentHeight = ref.watch(walletsChangeNotifierProvider
|
final currentHeight = ref.watch(walletsChangeNotifierProvider
|
||||||
.select((value) => value.getManager(walletId).currentHeight));
|
.select((value) => value.getManager(walletId).currentHeight));
|
||||||
|
|
||||||
print("THIS TRANSACTION IS $_transaction");
|
|
||||||
|
|
||||||
return ConditionalParent(
|
return ConditionalParent(
|
||||||
condition: !isDesktop,
|
condition: !isDesktop,
|
||||||
builder: (child) => Background(
|
builder: (child) => Background(
|
||||||
|
@ -1584,8 +1582,7 @@ class _TransactionDetailsViewState
|
||||||
coin.requiredConfirmations,
|
coin.requiredConfirmations,
|
||||||
) ==
|
) ==
|
||||||
false &&
|
false &&
|
||||||
_transaction.isCancelled == false &&
|
_transaction.isCancelled == false)
|
||||||
_transaction.type == TransactionType.outgoing)
|
|
||||||
? ConditionalParent(
|
? ConditionalParent(
|
||||||
condition: isDesktop,
|
condition: isDesktop,
|
||||||
builder: (child) => Padding(
|
builder: (child) => Padding(
|
||||||
|
|
Loading…
Reference in a new issue