Ends in:
7 DAYS
16 HRS
30 MIN
0 SEC
Ends in:
7 D
16 H
30 M
0 S
Open Closed

Angular: Hide item administration on Menu #395


User avatar
0
edelivery created
  • **ABP Framework version: 3.0.5
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes

I want to hide administration on menu. I'm using route.provider Please help me how to do it

ABP Framework version: 3.0.5 User Interface type: Angular


4 Answer(s)
  • User Avatar
    0
    Mehmet created

    Hi @edelivery

    You can patch the "Administration" route as shown below:

    import { RoutesService } from '@abp/ng.core';
    import { Component } from '@angular/core';
    import { eThemeSharedRouteNames } from '@abp/ng.theme.shared';
    
    @Component(/* component metadata */)
    export class AppComponent {
      constructor(private routes: RoutesService) {
        this.routes.patch(eThemeSharedRouteNames.Administration, { invisible: true });
      }
    }
    

    See the Modifying the Menu document for more information.

  • User Avatar
    0
    edelivery created

    Thanks Mehmet

  • User Avatar
    0
    aeffegroup created

    Hi, in Angular ABP.io version 4.2, how can I hide or remove the administration menu based on roles? For example, i want display the "administraton" menù only if i'm an "admin"

    i tried something like this but it disables for all users

  • User Avatar
    0
    Mehmet created

    Hi,

    You can manage the permissions:

    Can't you reach your goal using this?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06