Add admin menu in admin/user-info. Fix a bug initializition of menu.

This commit is contained in:
Konstantinos Triantafyllou 2022-07-03 11:55:49 +03:00
parent fbec29e2ca
commit 130926a80f
4 changed files with 7 additions and 9 deletions

View File

@ -25,7 +25,7 @@ const routes: Routes = [
{ {
path: 'admin/user-info', path: 'admin/user-info',
loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule), loadChildren: () => import('./login/libUser.module').then(m => m.LibUserModule),
data: {hasSidebar: false} data: {hasAdminMenu: true}
}, },
{ {
path: 'admin/admin-tools', path: 'admin/admin-tools',

View File

@ -150,12 +150,10 @@ export class AppComponent implements OnInit, OnDestroy {
this.loading = false; this.loading = false;
} }
} else { } else {
if(this.stakeholder) { LinksResolver.resetProperties();
LinksResolver.resetProperties(); this.stakeholderService.setStakeholder(null);
this.stakeholderService.setStakeholder(null); this.stakeholder = null;
this.stakeholder = null; this.buildMenu();
this.buildMenu();
}
this.loading = false; this.loading = false;
} }
} }

@ -1 +1 @@
Subproject commit 318b3cdf42922d8b04400bb010733b78fcf1fe1c Subproject commit 319eff1cc355ffc4148cf20c4ba23e15fbc6a6f6

@ -1 +1 @@
Subproject commit 25f7f7dd34fae80d1e2e25935c2f2772c5800e70 Subproject commit cad1fb199d5f45a9c4f276ea3192544e7e20d1fa