mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Label Manager component (#4594)
* Label Manager component closes #4464 * UI updates * Test fix * add test * fix warnings * fix select update bug * add test * fix test * Increase payment box max-width * add labels from address to tx on detection * Exclude well known label from the dropdown * Add test on transaction label attachement, tighten UpdateLabels method to only update address labels --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de> Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
This commit is contained in:
18
BTCPayServer/Components/LabelManager/LabelManager.cs
Normal file
18
BTCPayServer/Components/LabelManager/LabelManager.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using BTCPayServer.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace BTCPayServer.Components.LabelManager
|
||||
{
|
||||
public class LabelManager : ViewComponent
|
||||
{
|
||||
public IViewComponentResult Invoke(WalletObjectId walletObjectId, string[] selectedLabels)
|
||||
{
|
||||
var vm = new LabelViewModel
|
||||
{
|
||||
ObjectId = walletObjectId,
|
||||
SelectedLabels = selectedLabels
|
||||
};
|
||||
return View(vm);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user