hi
ABP Fremework doesn't support your case.
If you want to hide the permissions on the UI page. You can override the application service.
https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Application/Volo/Abp/PermissionManagement/PermissionAppService.cs#L0-L1
hi
Can you share the code and steps to reproduce the problem?
Thanks,
liming.ma@volosoft.com
Great
PreConfigure<OpenIddictServerBuilder> is global. And OpenId > Application is for each application/client.
hi
MyMainHeader.razor.cs
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Volo.Abp.AspNetCore.Components.Web;
using Volo.Abp.LeptonTheme.Management;
namespace Cns.Modules.Docusign.Blazor.Server.Host.Pages;
public partial class MyMainHeader
{
[Inject]
private IAbpUtilsService UtilsService { get; set; }
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
Menu ??= await MainMenuProvider.GetMenuAsync();
if (Menu.Placement == MenuPlacement.Top)
{
await UtilsService.AddClassToTagAsync("body", "lp-topmenu");
}
else
{
if (Menu.NavBarStatus == MenuStatus.OpenOnHover)
{
await UtilsService.AddClassToTagAsync("body", "lp-closed");
await UtilsService.RemoveClassFromTagAsync("body", "lp-opened-sidebar");
await UtilsService.RemoveClassFromTagAsync("body", "lp-body-fixed");
}
else
{
await UtilsService.RemoveClassFromTagAsync("body", "lp-closed");
await UtilsService.AddClassToTagAsync("body", "lp-opened-sidebar");
await UtilsService.AddClassToTagAsync("body", "lp-body-fixed");
}
}
await InvokeAsync(StateHasChanged);
}
}
async Task MyToggleNavbarStatusAsync()
{
Menu ??= await MainMenuProvider.GetMenuAsync();
Menu.ToggleNavbarStatus();
if (Menu.Placement == MenuPlacement.Top)
{
await UtilsService.AddClassToTagAsync("body", "lp-topmenu");
}
else
{
if (Menu.NavBarStatus == MenuStatus.OpenOnHover)
{
await UtilsService.AddClassToTagAsync("body", "lp-closed");
await UtilsService.RemoveClassFromTagAsync("body", "lp-opened-sidebar");
await UtilsService.RemoveClassFromTagAsync("body", "lp-body-fixed");
}
else
{
await UtilsService.RemoveClassFromTagAsync("body", "lp-closed");
await UtilsService.AddClassToTagAsync("body", "lp-opened-sidebar");
await UtilsService.AddClassToTagAsync("body", "lp-body-fixed");
}
}
}
protected virtual async Task OnNavBarMouseOverAsync()
{
//TODO: MOUSEOVER IS NOT PERFORMANT, WE SHOULD USE MOUSEENTER/MOUSELEAVE
Menu ??= await MainMenuProvider.GetMenuAsync();
if (Menu.NavBarStatus == MenuStatus.OpenOnHover)
{
if (await UtilsService.HasClassOnTagAsync("body", "lp-closed"))
{
await UtilsService.AddClassToTagAsync("body", "lp-extended");
}
}
}
protected virtual async Task OnNavbarMouseOutAsync()
{
Menu ??= await MainMenuProvider.GetMenuAsync();
if (Menu.NavBarStatus == MenuStatus.OpenOnHover)
{
if (await UtilsService.HasClassOnTagAsync("body", "lp-closed"))
{
await UtilsService.RemoveClassFromTagAsync("body", "lp-extended");
}
}
}
protected virtual void ToggleToolbarNav()
{
IsToolbarNavShown = !IsToolbarNavShown;
}
protected virtual void ToggleSidebarNav()
{
IsSidebarNavShown = !IsSidebarNavShown;
}
}
hi
You can edit the localization texts online but can't add new language texts and permissions.
https://abp.io/docs/latest/modules/language-management#language-texts
hi
The issue I want to ask is "In Settings > Feature management, child feature is displayed on the same level as parent feature"
We will fix it in 8.3.3
Thanks.
hi portx-dev
Les discuss in https://abp.io/support/questions/8203/
Thanks.