You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
786 B
29 lines
786 B
using LINGYUN.Abp.Gdpr.Localization;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.UI.Navigation;
|
|
|
|
namespace LINGYUN.Abp.Gdpr.Web;
|
|
|
|
public class AbpGdprUserMenuContributor : IMenuContributor
|
|
{
|
|
public virtual Task ConfigureMenuAsync(MenuConfigurationContext context)
|
|
{
|
|
if (context.Menu.Name != StandardMenus.User)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
|
|
var gdprResource = context.GetLocalizer<GdprResource>();
|
|
|
|
context.Menu.AddItem(
|
|
new ApplicationMenuItem(
|
|
"Account.Delete",
|
|
gdprResource["DeletePersonalAccount"],
|
|
url: "~/Account/Delete",
|
|
icon: "fa fa-remove",
|
|
order: int.MaxValue - 999));
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
|