diff options
author | 2020-04-08 15:59:21 +0200 | |
---|---|---|
committer | 2020-04-09 01:17:09 +0200 | |
commit | c78641087f481cb645096842a15efbb9feb77bfa (patch) | |
tree | da8c58706ffd62f54adf0b71ec3e1482c1c1203d /cds-ui/designer-client/src/app/modules/shared-modules | |
parent | d9a7495e044404c062897697b637b1cbb3b91fcc (diff) |
Fixnig file import in script, import and template&mapping.
Fixing routes redirect
Issue-ID: CCSDK-2258
Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: Ibe9f4516884044adcea2e8e16ee59c4e1775120f
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/shared-modules')
-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']); + } + } |