[Connect|Trunk]

App component: 
	Connect menu: 
		publications menu item fixes
		pass connect communityId in navbar
HtmlPages: use connect communtiy if there is no communityId
			



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58473 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-04-10 12:08:46 +00:00
parent 314504e535
commit 667c96f88e
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ import {UserManagementService} from "./openaireLibrary/services/user-management.
<div [class]="(community)?(community.id +'App'):'connectApp'">
<navbar *ngIf="properties && showMenu && !community" [portal]="properties.dashboard" [onlyTop]=false
[userMenuItems]=userMenuItems [menuItems]=menuItems [user]="user"
[showMenu]=showMenu [properties]="properties" [showHomeMenuItem]="true"></navbar>
[showMenu]=showMenu [properties]="properties" [showHomeMenuItem]="true" communityId="connect"></navbar>
<navbar *ngIf="properties && showMenu && community" [portal]="properties.dashboard" [onlyTop]=false
[communityId]="community.id"
[userMenuItems]=userMenuItems [menuItems]=menuItems [user]="user"
@ -215,7 +215,7 @@ export class AppComponent {
rootItem: new MenuItem("about", "About", "", "/about/learn-how", false, [], null, {}),
items: [
new MenuItem("", "Learn the process", "", "/about/learn-how", false, [], [], {}),
new MenuItem("", "Publications", "", "/community-publications", false, [], ["/community-publications"], this.properties.environment != "development" ? {} : {communityId: community.communityId}),
new MenuItem("", "Publications", "", "/publications", false, [], ["/publications"], {}),
new MenuItem("", "Roadmap", "https://trello.com/b/yfzUz0kp/openaire-connect-dashboard", "", false, [], [], {}),
]

View File

@ -80,7 +80,7 @@ export class HtmlPageComponent {
}
private getPageContents() {
this.helper.getPageHelpContents(this.properties, this.communityId, this._router.url).subscribe(contents => {
this.helper.getPageHelpContents(this.properties, this.communityId?this.communityId:"connect", this._router.url).subscribe(contents => {
this.pageContents = contents;
})
}