rsanchez
2017-03-20 470182be4f955a1c11d912743ce9e683ac4902a5
securis/src/main/webapp/src/app/forms/license.form.component.ts
....@@ -24,13 +24,13 @@
2424
2525 constructor(private http: Http,
2626 private licenses: LicensesService,
27
- private router: Router,
2827 private packs: PacksService,
28
+ router: Router,
2929 toaster: ToastsManager,
3030 route: ActivatedRoute,
3131 $L: LocaleService,
3232 dialogs: TdDialogService) {
33
- super($L, route, toaster, licenses, $L.get('license'), dialogs);
33
+ super($L, router, route, toaster, licenses, $L.get('license'), dialogs);
3434 }
3535
3636 requestFileSelected(file: File) : void {
....@@ -77,6 +77,10 @@
7777
7878
7979 ngAfterViewInit(): void {
80
+ this.init();
81
+ }
82
+
83
+ init(): void {
8084
8185 this.route.params.subscribe(params => {
8286 var packId = +params['packId']; // (+) converts string 'id' to a number