From e19ec379d0ad25608484380fbf967dd0e3d9413f Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Mon, 24 Jun 2019 12:12:28 +0000 Subject: [PATCH] [Library|Trunk] Navbar: add home menu item --> show when the route is not the home, use a boolean attr to show it, by default is hidden git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@56180 d315682c-612b-4755-9ff5-7f18f6832af3 --- sharedComponents/navigationBar.component.html | 8 +++++++- sharedComponents/navigationBar.component.ts | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/sharedComponents/navigationBar.component.html b/sharedComponents/navigationBar.component.html index ceaad2ef..5973b35d 100644 --- a/sharedComponents/navigationBar.component.html +++ b/sharedComponents/navigationBar.component.html @@ -45,6 +45,9 @@ +
  • + Home +
  • {{menu.rootItem.title}} @@ -158,7 +161,10 @@
      - +
    • + Home +
    • +
    • {{menu.rootItem.title}} diff --git a/sharedComponents/navigationBar.component.ts b/sharedComponents/navigationBar.component.ts index 44726a56..b45228b2 100644 --- a/sharedComponents/navigationBar.component.ts +++ b/sharedComponents/navigationBar.component.ts @@ -17,8 +17,7 @@ export class NavigationBarComponent { @Input() onlyTop:boolean ; @Input() logoPath:string = "assets/common-assets/"; @Input() userMenu:boolean = true; - // @Input() logOutUrl; - // @Input() APIUrl; + @Input() showHomeMenuItem:boolean = false; @Input() communityId; @Input() showCommunityName:boolean = false; @Input() userMenuItems:MenuItem[] ;