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/header/header.component.ts | |
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/header/header.component.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/shared-modules/header/header.component.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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']); + } + } |