add ui state reset helper

TODO remove, just for development
This commit is contained in:
sneurlax 2023-10-13 13:00:35 -05:00
parent 3266b623b6
commit 20dde81da1

View file

@ -113,6 +113,14 @@ mixin FusionWalletInterface {
_uiState?.fusing = CashFusionStatus.failed; _uiState?.fusing = CashFusionStatus.failed;
_uiState?.complete = CashFusionStatus.failed; _uiState?.complete = CashFusionStatus.failed;
break; break;
case fusion.FusionStatus.reset:
_uiState?.outputs = CashFusionStatus.waiting;
_uiState?.peers = CashFusionStatus.waiting;
_uiState?.connecting = CashFusionStatus.waiting;
_uiState?.fusing = CashFusionStatus.waiting;
_uiState?.complete = CashFusionStatus.waiting;
_uiState?.fusionState = CashFusionStatus.waiting;
break;
} }
} }
@ -389,6 +397,7 @@ mixin FusionWalletInterface {
fusion.FusionStatus.complete, fusion.FusionStatus.complete,
fusion.FusionStatus.failed, fusion.FusionStatus.failed,
fusion.FusionStatus.exception, fusion.FusionStatus.exception,
fusion.FusionStatus.reset,
]; ];
// Iterate through the list of states, waiting one second between each. // Iterate through the list of states, waiting one second between each.