Refactor can execute
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/TransactionHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/TransactionHistoryItemViewModel.cs
using System.Linq;
using System.Reactive;
+using System.Reactive.Linq;
using NBitcoin;
using ReactiveUI;
using WalletWasabi.Blockchain.Transactions;
@@ -37,12 +38,16 @@ public class TransactionHistoryItemViewModel : HistoryItemViewModelBase
RoutableViewModel.Navigate(NavigationTarget.DialogScreen).To(
new TransactionDetailsViewModel(transactionSummary, walletViewModel.Wallet, updateTrigger)));
+ var speedUpTransactionCommandCanExecute = this.WhenAnyValue(x => x.IsConfirmed)
+ .Select(x => !x)
+ .ObserveOn(RxApp.MainThreadScheduler);
+
SpeedUpTransactionCommand = ReactiveCommand.Create(
() =>
{
// TODO: Show speed up transaction dialog.
},
- this.WhenAnyValue(x => !x.IsConfirmed));
+ speedUpTransactionCommandCanExecute);
DateString = $"{Date.ToLocalTime():MM/dd/yy HH:mm}";
}

Refactor can execute