6d2d23ee3d9f21273fa16313c6f8e834e6faa2ee
[portal/sdk.git] /
1 import { Component, OnInit, Input } from '@angular/core';
2 import { ActivatedRoute, Router } from '@angular/router';
3 import { HttpClient } from '@angular/common/http';
4
5 @Component({
6   selector: 'app-run',
7   templateUrl: './run.component.html',
8   styleUrls: ['./run.component.css']
9 })
10 export class RunComponent implements OnInit {
11
12   toggle : boolean;
13   IncomingReportId : string;
14
15   @Input("reportId") reportId1 : string;
16
17
18
19   constructor(private _http : HttpClient, private _route : ActivatedRoute, private router : Router) {
20     this.toggle = false;
21    }
22
23   ngOnInit() {
24   }
25
26   runReport()
27   {
28     this.toggle = true;
29    
30     this._route.params.subscribe(params => {
31       
32       this.IncomingReportId = params["reportId"];
33       this.reportId1 = params["reportId"];
34     });
35
36     this.router.navigate(['v2/run', this.reportId1]);
37
38     console.log(this.IncomingReportId);
39
40   }
41
42 }