Fix a bug with active menu item on sidebar. Remove openaire.css from imports
This commit is contained in:
parent
fc0df9bba7
commit
6b6e581239
|
@ -379,8 +379,8 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||||
this.specialSideBarMenuItem = null;
|
this.specialSideBarMenuItem = null;
|
||||||
this.adminMenuItems.push(new MenuItem("stakeholders", "Manage profiles", "", "/admin", false, [], [], {}, {name: 'settings'}));
|
this.adminMenuItems.push(new MenuItem("stakeholders", "Manage profiles", "", "/admin", false, [], [], {}, {name: 'settings'}));
|
||||||
if (Session.isPortalAdministrator(this.user)) {
|
if (Session.isPortalAdministrator(this.user)) {
|
||||||
this.adminMenuItems.push(new MenuItem("super_admin", "Super Admin Options", "", "/admin/admin-tools/portals", false, [], [], {}, {name: 'settings'}, null, null, 'admin/admin-tools'));
|
this.adminMenuItems.push(new MenuItem("super_admin", "Super Admin Options", "", "/admin/admin-tools/portals", false, [], [], {}, {name: 'settings'}, null, null, '/admin/admin-tools'));
|
||||||
this.adminMenuItems.push(new MenuItem("monitor", "Monitor Options", "", "/admin/monitor/admin-tools/pages", false, [], [], {}, {name: 'settings'}, null, null, 'admin/monitor/admin-tools'));
|
this.adminMenuItems.push(new MenuItem("monitor", "Monitor Options", "", "/admin/monitor/admin-tools/pages", false, [], [], {}, {name: 'settings'}, null, null, '/admin/monitor/admin-tools'));
|
||||||
}
|
}
|
||||||
this.hasAdminMenu = this.hasAdminMenu && this.adminMenuItems.length > 0;
|
this.hasAdminMenu = this.hasAdminMenu && this.adminMenuItems.length > 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 5e1fde78411e2913c3757534a073ace32a4eacf2
|
Subproject commit 4625ebf9674e4ffd185bcbee050737b99f690cc4
|
|
@ -31,7 +31,6 @@ export class AdminDashboardGuard implements CanActivate, CanActivateChild {
|
||||||
res[0] && res[1] && (Session.isPortalAdministrator(res[0]) ||
|
res[0] && res[1] && (Session.isPortalAdministrator(res[0]) ||
|
||||||
Session.isCurator(res[1].type, res[0]) || Session.isManager(res[1].type, res[1].alias, res[0]))
|
Session.isCurator(res[1].type, res[0]) || Session.isManager(res[1].type, res[1].alias, res[0]))
|
||||||
),tap(authorized => {
|
),tap(authorized => {
|
||||||
console.log(authorized);
|
|
||||||
if(!authorized){
|
if(!authorized){
|
||||||
this.router.navigate(['/user-info'], {queryParams: {'errorCode': LoginErrorCodes.NOT_ADMIN, 'redirectUrl':path}});
|
this.router.navigate(['/user-info'], {queryParams: {'errorCode': LoginErrorCodes.NOT_ADMIN, 'redirectUrl':path}});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 752859b10d3e110fdc9a4360bb7cb005ef6225ed
|
Subproject commit 1c7b42284c58024e7d51cb0ae7c5c27f997c646d
|
|
@ -1 +1 @@
|
||||||
Subproject commit cd1a176ceb3aaa3493e16fc4d7ef67749655f351
|
Subproject commit d2afff99f1b7fd5e2f143191dc836bba56bdb8ca
|
|
@ -2,9 +2,5 @@
|
||||||
|
|
||||||
/* Import OpenAIRE theme*/
|
/* Import OpenAIRE theme*/
|
||||||
@import "~src/assets/openaire-theme/less/_import";
|
@import "~src/assets/openaire-theme/less/_import";
|
||||||
//@import "assets/openaire-theme/css/import.css";
|
|
||||||
//@import "assets/common-assets/library.css";
|
|
||||||
@import "assets/monitor-dashboard-custom";
|
@import "assets/monitor-dashboard-custom";
|
||||||
@import "assets/print.css";
|
@import "assets/print.css";
|
||||||
|
|
||||||
/* Deprecated */
|
|
||||||
|
|
Loading…
Reference in New Issue