[develop | DONE | CHANGED ] update menu links according to joomla changes
This commit is contained in:
parent
6a7ae34f2d
commit
f9f2273ac0
|
|
@ -3,8 +3,15 @@
|
|||
</div>
|
||||
<div *ngIf="loading == false">
|
||||
<div id="modal-container"></div>
|
||||
<navbar *ngIf="hasHeader" portal="connect-admin" [header]="menuHeader" [communityId]="community ? community.communityId : null"
|
||||
[userMenuItems]=userMenuItems [menuItems]="menuItems" [user]="user"></navbar>
|
||||
<navbar #navbar *ngIf="hasHeader" portal="connect-admin" [header]="menuHeader" [communityId]="community ? community.communityId : null"
|
||||
[userMenuItems]=userMenuItems [menuItems]="menuItems" [user]="user">
|
||||
<div *ngIf="showGetStarted" extra-s class="uk-margin-large-top uk-margin-left">
|
||||
<a class="uk-button uk-button-primary uk-text-uppercase" href="https://connect.openaire.eu" (click)="navbar.closeCanvas()">Get Started</a>
|
||||
</div>
|
||||
<a *ngIf="showGetStarted" extra-m
|
||||
class="uk-button uk-button-small uk-button-primary uk-text-uppercase uk-margin-left"
|
||||
href="https://connect.openaire.eu" >Get Started</a>
|
||||
</navbar>
|
||||
<div class="sidebar_main_swipe uk-flex" [class.sidebar_main_active]="open && (hasSidebar || hasInternalSidebar)" [class.sidebar_mini]="!open && (hasSidebar || hasInternalSidebar)"
|
||||
[class.sidebar_hover]="hover">
|
||||
<dashboard-sidebar *ngIf="hasSidebar && !hasInternalSidebar" [items]="sideBarItems" [backItem]="backItem"></dashboard-sidebar>
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ export class AppComponent implements OnInit {
|
|||
sideBarItems: MenuItem[] = [];
|
||||
backItem: MenuItem = null;
|
||||
menuItems: MenuItem[] = [];
|
||||
showGetStarted = false;
|
||||
menuHeader: Header = {
|
||||
route: "/",
|
||||
url: null,
|
||||
|
|
@ -209,6 +210,7 @@ export class AppComponent implements OnInit {
|
|||
}
|
||||
}
|
||||
if (this.community) {
|
||||
this.showGetStarted = false;
|
||||
this.headerLogoUrl = StringUtils.getLogoUrl(this.community);
|
||||
this.headerUrl = 'https://' + ((properties.environment !== 'production')?'beta.':'') + this.community.communityId + '.openaire.eu';
|
||||
this.menuHeader = {
|
||||
|
|
@ -299,6 +301,7 @@ export class AppComponent implements OnInit {
|
|||
);
|
||||
// }
|
||||
} else {
|
||||
this.showGetStarted = true;
|
||||
this.headerLogoUrl = null;
|
||||
this.headerUrl = 'https://' + ((properties.environment !== 'production')?'beta.':'') + 'connect.openaire.eu';
|
||||
this.menuHeader = {
|
||||
|
|
@ -312,19 +315,10 @@ export class AppComponent implements OnInit {
|
|||
menuPosition: "center"
|
||||
};
|
||||
this.menuItems = [];
|
||||
|
||||
this.menuItems.push(
|
||||
new MenuItem("about", "About", this.headerUrl + "/about/learn-how", "", false, [], [], {}, null, null, null, null, "_self",
|
||||
"internal", false,
|
||||
[
|
||||
new MenuItem("", "Learn the process", this.headerUrl + "/about/learn-how", "", false, [], [], {}, null, null, null, null, "_self"),
|
||||
new MenuItem("", "Publications", this.headerUrl + "/publications", "", false, [], [], {}, null, null, null, null, "_self"),
|
||||
new MenuItem("", "Roadmap", "https://trello.com/b/yfzUz0kp/openaire-connect-dashboard", "", false, [], [], {}),
|
||||
new MenuItem("", "FAQs", this.headerUrl + "/about/faq", "", false, [], [], {}, null, null, null, null, "_self")
|
||||
]
|
||||
)
|
||||
);
|
||||
this.menuItems.push(
|
||||
new MenuItem("communities", "Communities", this.headerUrl + "/search/find/communities", "", false, [], [], {}, null, null, null, null, "_self")
|
||||
new MenuItem("communities", "Communities", 'https://' + ((properties.environment !== 'production')?'beta.':'')
|
||||
+ 'connect.openaire.eu' +((properties.environment == 'production')?'/communities.html':'') , "", false, [], [], {}, null, null, null, null, "_self")
|
||||
);
|
||||
if(this.isCurator()) {
|
||||
this.sideBarItems.push(new MenuItem("communities", "Manage communities", "", "/", false, [], [], {}, {name: 'settings'}));
|
||||
|
|
|
|||
Loading…
Reference in New Issue