Skip to content

Commit

Permalink
Fixing small details (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
markettes authored Jun 22, 2023
1 parent 3e4900f commit b1e6323
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Pages/Wallets.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@using Humanizer
@using NBitcoin
@using NBXplorer.DerivationStrategy
@using NSubstitute
@using Field = Blazorise.Field
@using Key = FundsManager.Data.Models.Key
@inject IWalletRepository WalletRepository
Expand Down Expand Up @@ -48,7 +49,7 @@

<DropdownItem Clicked="context.Clicked">New</DropdownItem>
<DropdownItem Clicked="@(() => ShowImportWalletModal())">Import Wallet</DropdownItem>
<DropdownItem Clicked="@ShowWallets">@("Show archived and compromised wallets" + (_showNotAvailableWallets ? " \u2713" : ""))</DropdownItem>
<DropdownItem Clicked="@ShowWallets">@("Archived & compromised wallets" + (_showNotAvailableWallets ? " \u2713" : ""))</DropdownItem>

</DropdownMenu>
</Dropdown>
Expand Down Expand Up @@ -394,7 +395,7 @@

private async Task GetData()
{
_wallets = _showNotAvailableWallets ? await WalletRepository.GetAll() : await WalletRepository.GetAvailableWallets();
_wallets = _showNotAvailableWallets ? (await WalletRepository.GetAll()).Where(x => x.IsArchived || x.IsCompromised).ToList() : await WalletRepository.GetAvailableWallets();
var financeManagers = (await ApplicationUserRepository.GetUsersInRole(ApplicationUserRole.FinanceManager));
_financeManagers = financeManagers.Where(x => x.Keys.Any()).ToList();

Expand Down Expand Up @@ -824,7 +825,7 @@
private async Task CopyStrToClipboard(string arg)
{
await ClipboardService.WriteTextAsync(arg);
ToastService.ShowSuccess("Text copied");
ToastService.ShowSuccess("Address copied");
}

private async Task ShowWallets()
Expand Down

0 comments on commit b1e6323

Please sign in to comment.