mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-27 12:45:52 +00:00
mb order status fixes
This commit is contained in:
parent
54bc340c17
commit
58227c40be
4 changed files with 35 additions and 7 deletions
|
@ -116,9 +116,16 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
}
|
}
|
||||||
status = changeNowTransactionStatusFromStringIgnoreCase(statusString);
|
status = changeNowTransactionStatusFromStringIgnoreCase(statusString);
|
||||||
} on ArgumentError catch (_) {
|
} on ArgumentError catch (_) {
|
||||||
|
switch (statusString.toLowerCase()) {
|
||||||
|
case "funds confirming":
|
||||||
|
case "processing payment":
|
||||||
|
return Assets.svg.txExchangePending(context);
|
||||||
|
|
||||||
|
case "completed":
|
||||||
|
return Assets.svg.txExchange(context);
|
||||||
|
|
||||||
|
default:
|
||||||
status = ChangeNowTransactionStatus.Failed;
|
status = ChangeNowTransactionStatus.Failed;
|
||||||
if (statusString == "Processing payment") {
|
|
||||||
status = ChangeNowTransactionStatus.Sending;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -290,12 +290,22 @@ class _DesktopTradeRowCardState extends ConsumerState<DesktopTradeRowCard> {
|
||||||
ChangeNowTransactionStatus? status;
|
ChangeNowTransactionStatus? status;
|
||||||
try {
|
try {
|
||||||
if (statusString.toLowerCase().startsWith("waiting")) {
|
if (statusString.toLowerCase().startsWith("waiting")) {
|
||||||
statusString = "waiting";
|
statusString = "Waiting";
|
||||||
}
|
}
|
||||||
status = changeNowTransactionStatusFromStringIgnoreCase(statusString);
|
status = changeNowTransactionStatusFromStringIgnoreCase(statusString);
|
||||||
} on ArgumentError catch (_) {
|
} on ArgumentError catch (_) {
|
||||||
|
switch (statusString.toLowerCase()) {
|
||||||
|
case "funds confirming":
|
||||||
|
case "processing payment":
|
||||||
|
return Assets.svg.txExchangePending(context);
|
||||||
|
|
||||||
|
case "completed":
|
||||||
|
return Assets.svg.txExchange(context);
|
||||||
|
|
||||||
|
default:
|
||||||
status = ChangeNowTransactionStatus.Failed;
|
status = ChangeNowTransactionStatus.Failed;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case ChangeNowTransactionStatus.New:
|
case ChangeNowTransactionStatus.New:
|
||||||
|
|
|
@ -1603,6 +1603,7 @@ class StackColors extends ThemeExtension<StackColors> {
|
||||||
return const Color(0xFFD3A90F);
|
return const Color(0xFFD3A90F);
|
||||||
case "Finished":
|
case "Finished":
|
||||||
case "finished":
|
case "finished":
|
||||||
|
case "Completed":
|
||||||
return accentColorGreen;
|
return accentColorGreen;
|
||||||
case "Failed":
|
case "Failed":
|
||||||
case "failed":
|
case "failed":
|
||||||
|
|
|
@ -25,12 +25,22 @@ class TradeCard extends ConsumerWidget {
|
||||||
ChangeNowTransactionStatus? status;
|
ChangeNowTransactionStatus? status;
|
||||||
try {
|
try {
|
||||||
if (statusString.toLowerCase().startsWith("waiting")) {
|
if (statusString.toLowerCase().startsWith("waiting")) {
|
||||||
statusString = "waiting";
|
statusString = "Waiting";
|
||||||
}
|
}
|
||||||
status = changeNowTransactionStatusFromStringIgnoreCase(statusString);
|
status = changeNowTransactionStatusFromStringIgnoreCase(statusString);
|
||||||
} on ArgumentError catch (_) {
|
} on ArgumentError catch (_) {
|
||||||
|
switch (statusString.toLowerCase()) {
|
||||||
|
case "funds confirming":
|
||||||
|
case "processing payment":
|
||||||
|
return Assets.svg.txExchangePending(context);
|
||||||
|
|
||||||
|
case "completed":
|
||||||
|
return Assets.svg.txExchange(context);
|
||||||
|
|
||||||
|
default:
|
||||||
status = ChangeNowTransactionStatus.Failed;
|
status = ChangeNowTransactionStatus.Failed;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case ChangeNowTransactionStatus.New:
|
case ChangeNowTransactionStatus.New:
|
||||||
|
|
Loading…
Reference in a new issue