From a6b5178c7295be4525ee0f607e42f72a12a2e3d6 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Wed, 15 Mar 2017 15:45:26 +0000
Subject: [PATCH] #3527 fix - Changes on licenses list and routes

---
 securis/src/main/webapp/src/app/pack.list.component.ts |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/securis/src/main/webapp/src/app/pack.list.component.ts b/securis/src/main/webapp/src/app/pack.list.component.ts
index 7df79ab..5c44a1d 100644
--- a/securis/src/main/webapp/src/app/pack.list.component.ts
+++ b/securis/src/main/webapp/src/app/pack.list.component.ts
@@ -1,4 +1,4 @@
-import { Router } from '@angular/router';
+import { Router, ActivatedRoute } from '@angular/router';
 import { MdDialog, MdDialogConfig } from '@angular/material';
 import { TdDataTableService, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core';
 import { IPageChangeEvent } from '@covalent/core';
@@ -54,7 +54,7 @@
     { name: 'application_name', label: 'App name' },
     { name: 'licensetype_code', label: 'License type' },
     { name: 'organization_name', label: 'Organization' },
-    { name: 'used_licenses', label: 'Lics', tooltip: 'Initial/Available pack licenses' },
+    { name: 'used_licenses', label: 'Licenses', tooltip: 'Initial/Available pack licenses' },
     { name: 'menu', label: '' }
   ];
 
@@ -87,6 +87,7 @@
   constructor(private _dataTableService: TdDataTableService,
     private media: TdMediaService,
     private router: Router,
+    private route: ActivatedRoute,
     private dialog: MdDialog,
     private $L: LocaleService,
     private packForm: PackFormComponent,
@@ -114,7 +115,7 @@
   }
 
   showLicenses(pack: any) : void {
-    this.router.navigateByUrl('/licenses');
+    this.router.navigate([`${pack.id}/licenses`], {relativeTo: this.route});
   }
 
   editPack(pack: any) : void {

--
Gitblit v1.3.2