diff options
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/shared-modules/header')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.html | 8 | ||||
-rw-r--r-- | cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.ts | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.html b/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.html index 502e098d3..b6dadf88a 100644 --- a/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.html +++ b/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.html @@ -5,14 +5,14 @@ <div class="overflow-container"> <ul class="menu-dropdown"> <li class="active"> - <a routerLink="/packages">Packages</a> + <a (click)="redirect()" routerLink="/packages">Packages</a> <span class="icon"> <!-- <i class="fa fa-dashboard"></i> --> <i class="icon-package"></i> </span> </li> <li class="menu-hasdropdown"> - <a >Data Dictionary</a> + <a>Data Dictionary</a> <span class="icon"> <i class="icon-dictionary"></i> </span> @@ -34,7 +34,7 @@ </li> </ul> </li> --> - <!-- <li> + <!-- <li> <a href="#">Favourites</a> <span class="icon"> <i class="fa fa-heart"></i> @@ -69,4 +69,4 @@ </ul> </nav> -</div> +</div>
\ No newline at end of file diff --git a/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.ts b/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.ts index 3ee4d0f65..db87f8fdf 100644 --- a/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.ts +++ b/cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { Router } from '@angular/router'; @Component({ selector: 'app-header', @@ -7,9 +8,13 @@ import { Component, OnInit } from '@angular/core'; }) export class HeaderComponent implements OnInit { - constructor() { } + constructor(private router: Router) { } ngOnInit() { } + redirect() { + this.router.navigate(['/packages']); + } + } |