Open Closed

[LeptonX] Hide item in user's account #4254


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

Hi team! I want just want show item logout in account menu. How can i do this?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    hi

    Is this menu page MVC or Angular?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    FPT_TuyenDN1 created

    hi

    Is this menu page MVC or Angular?

    Menu page is Angular

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    muhammedaltug created

    Hello,

    You can remove items with UserMenuService

    import { UserMenuService } from '@abp/ng.theme.shared';
    import { Component } from '@angular/core';
    import { eUserMenuItems } from '@volosoft/abp.ng.theme.lepton-x';
    
    @Component({
      selector: 'app-root',
      template: 'component template'
    })
    export class AppComponent {
      constructor(userMenu: UserMenuService) {
        userMenu.removeItem(eUserMenuItems.LinkedAccounts);
        userMenu.removeItem(eUserMenuItems.MyAccount);
        userMenu.removeItem(eUserMenuItems.SecurityLogs);
        userMenu.removeItem('Gdpr.GdprNavigation');
      }
    }
    
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    FPT_TuyenDN1 created

    userMenu.removeItem(eUserMenuItems.LinkedAccounts); userMenu.removeItem(eUserMenuItems.MyAccount); userMenu.removeItem(eUserMenuItems.SecurityLogs); userMenu.removeItem('Gdpr.GdprNavigation');

    Thanks it work

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.