feat(account-page): implement dynamic account navigation menus in sidebar and user dropdown
This commit is contained in:
@@ -89,9 +89,7 @@ export const routes: Routes = [
|
||||
path: 'preguntas-frecuentes',
|
||||
canActivate: [hasMenuGuard('help.faq')],
|
||||
loadComponent: () =>
|
||||
import('./pages/help-page/pages/faq-page/faq-page').then(
|
||||
(m) => m.FaqPage,
|
||||
),
|
||||
import('./pages/help-page/pages/faq-page/faq-page').then((m) => m.FaqPage),
|
||||
},
|
||||
{
|
||||
path: 'contacto',
|
||||
@@ -117,11 +115,9 @@ export const routes: Routes = [
|
||||
},
|
||||
{
|
||||
path: 'mi-cuenta',
|
||||
canActivate: [authGuard],
|
||||
canActivate: [authGuard, hasMenuGuard('account')],
|
||||
loadComponent: () =>
|
||||
import('./pages/account-page/sidebar-layout/sidebar-layout').then(
|
||||
(m) => m.SidebarLayout,
|
||||
),
|
||||
import('./pages/account-page/sidebar-layout/sidebar-layout').then((m) => m.SidebarLayout),
|
||||
children: [
|
||||
{
|
||||
path: 'datos-personales',
|
||||
|
||||
Reference in New Issue
Block a user