Open Closed

Angular lepton-x general settings #4456


User avatar
0
steve.burgess created
  • ABP Framework version: v6.0.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes (OpenIddict)
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi,

I'm trying to figure out how to remove items from the "General Settings" menu in the Angular lepton-x theme without replacing the component.

This section

Is this possible?

Thanks,

Steve.


2 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    The Settings component uses " SidebarSettingsService " for creating items, but it can change with your service.

    Go to app.module ts. and change lpx settins service with LPX_SETTINGS_SERVICE token.

    import { LPX_SETTINGS_SERVICE } from '@volosoft/ngx-lepton-x/layouts'
    
        //..
      providers: [
      //..
      {
        provide: LPX_SETTINGS_SERVICE ,
        useClass: CustomSidebarSettingsService,
      }],
      bootstrap: [AppComponent],
    })
    export class AppModule {}
    

    here example ' SidebarSettingsService.ts '

    https://gist.github.com/mahmut-gundogdu/73a1cd2d854cd1cf6e2bf15a92c7cca1

  • User Avatar
    0
    steve.burgess created

    OK, thanks for that.

    Cheers,

    Steve.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19