mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
* 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>
18 lines
479 B
C#
18 lines
479 B
C#
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);
|
|
}
|
|
}
|
|
}
|