| .. | .. |
|---|
| 1 | | -import { Router } from '@angular/router'; |
|---|
| 1 | +import { Router, ActivatedRoute } from '@angular/router'; |
|---|
| 2 | 2 | import { MdDialog, MdDialogConfig } from '@angular/material'; |
|---|
| 3 | 3 | import { TdDataTableService, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core'; |
|---|
| 4 | 4 | import { IPageChangeEvent } from '@covalent/core'; |
|---|
| .. | .. |
|---|
| 54 | 54 | { name: 'application_name', label: 'App name' }, |
|---|
| 55 | 55 | { name: 'licensetype_code', label: 'License type' }, |
|---|
| 56 | 56 | { name: 'organization_name', label: 'Organization' }, |
|---|
| 57 | | - { name: 'used_licenses', label: 'Lics', tooltip: 'Initial/Available pack licenses' }, |
|---|
| 57 | + { name: 'used_licenses', label: 'Licenses', tooltip: 'Initial/Available pack licenses' }, |
|---|
| 58 | 58 | { name: 'menu', label: '' } |
|---|
| 59 | 59 | ]; |
|---|
| 60 | 60 | |
|---|
| .. | .. |
|---|
| 87 | 87 | constructor(private _dataTableService: TdDataTableService, |
|---|
| 88 | 88 | private media: TdMediaService, |
|---|
| 89 | 89 | private router: Router, |
|---|
| 90 | + private route: ActivatedRoute, |
|---|
| 90 | 91 | private dialog: MdDialog, |
|---|
| 91 | 92 | private $L: LocaleService, |
|---|
| 92 | 93 | private packForm: PackFormComponent, |
|---|
| .. | .. |
|---|
| 114 | 115 | } |
|---|
| 115 | 116 | |
|---|
| 116 | 117 | showLicenses(pack: any) : void { |
|---|
| 117 | | - this.router.navigateByUrl('/licenses'); |
|---|
| 118 | + this.router.navigate([`${pack.id}/licenses`], {relativeTo: this.route}); |
|---|
| 118 | 119 | } |
|---|
| 119 | 120 | |
|---|
| 120 | 121 | editPack(pack: any) : void { |
|---|