diff --git a/src/Pages/Wallets.razor b/src/Pages/Wallets.razor index 53606168..36f50138 100644 --- a/src/Pages/Wallets.razor +++ b/src/Pages/Wallets.razor @@ -33,7 +33,7 @@ @ref="_walletsDataGrid" @bind-SelectedRow="_selectedWallet" Data="_wallets" - Editable="@_isFinanceManager" + Editable="true" EditMode="DataGridEditMode.Popup" Responsive="true" ResizeMode="TableResizeMode.Columns" @@ -55,31 +55,29 @@ - @if (_isFinanceManager) - { + @if (_isFinanceManager){ - New Import Wallet - } - + @if (_isFinanceManager){ + Edit + Transfer funds + } - Edit Details Get address - Transfer funds Rescan wallet Export output descriptor @@ -212,12 +210,12 @@ Select the Finance user(s) who will be a co-approver + TValue="string" + Data="@_financeManagers" + TextField="@((item) => item.UserName)" + ValueField="@((item) => item.Id)" + SelectedValueChanged="@OnSelectedFinanceManager" + DefaultItemText="Choose the approver"/> @if (_selectedFinanceManager != null && _selectedFinanceManagerAvailableKeys.Any()) @@ -225,12 +223,12 @@ Select the Finance user(s) key + TValue="int" + Data="@_selectedFinanceManagerAvailableKeys" + TextField="@((item) => $"{item.Name}-{StringHelper.TruncateHeadAndTail(item.XPUB, 10)}")" + ValueField="@((item) => item.Id)" + SelectedValueChanged="@OnSelectedWalletKey" + DefaultItemText="Choose the key of the manager"/> } else @@ -485,14 +483,14 @@ + TValue="int" + DefaultItemDisabled + Data="_walletsForTransfer" + TextField="@((item) => item.Name)" + ValueField="@((item) => item.Id)" + SelectedValue="@_selectedTransferWalletId" + SelectedValueChanged="(id) => OnSelectedWallet(id)" + DefaultItemText="Choose the wallet"> You must select a valid wallet @@ -726,8 +724,8 @@ @("Output descriptor: " + StringHelper.TruncateHeadAndTail(_outputDescriptorContentModal, 25)) - @("Wallet derivation strategy (NBITCOIN): " + StringHelper.TruncateHeadAndTail(_derivationScheme, 25)) - + @("Wallet derivation strategy (NBITCOIN): " + StringHelper.TruncateHeadAndTail(_derivationScheme, 25)) + @@ -736,18 +734,18 @@ +@ref="_multisigTransferModal" +Title="Transferring from a multisig wallet" +Body="Your transfer request was succesfully done. Please, go to Withdrawals page to sign for this transfer." +CancelLabel="Yes, understood" +OnCancel="CloseMultisigTransferModal"/> +@ref="_hotWalletTransferModal" +Title="Are you sure?" +Body="You're about to transfer funds from this wallet. This means that the system will automatically use the funds in it without the need of manual approval. Are you sure you want to perform this operation?" +OkLabel="Yes, understood" +OnCancel="CloseHotWalletTransferModal" +OnSubmit="TransferFundsHotWallet"/> @code {