Open Closed

Make SaaS menu Item invisible / turn off #1854


User avatar
0

Hi,

I would like to remove the SaaS Menu item from the main menu when logged in as Admin. Is there a way for me to turn it / make it invisible using the app.config or some other method?

Thank you,

Jesse

  • ABP Framework version: Latest
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can find the saas menu and remve it in your MenuContributor class.

    //SaasHostMenuNames.GroupName
    //SaasHostMenus.GroupName
    
  • User Avatar
    0

    thanks maliming....I used the following code in the MenuContributor class to remove the item:

    context.Menu.TryRemoveMenuItem(SaasHostMenus.GroupName);

    Thanks,

    Jesse

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11