Starts in:
1 DAY
22 HRS
12 MIN
54 SEC
Starts in:
1 D
22 H
12 M
54 S
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?


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

    hi

    Is this menu page MVC or Angular?

  • User Avatar
    0
    FPT_TuyenDN1 created

    hi

    Is this menu page MVC or Angular?

    Menu page is Angular

  • 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');
      }
    }
    
    
  • 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

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