@csmart/ngc-smart-victim 1.14.34 → 1.14.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -1820,6 +1820,10 @@ class NgcSmartVictimComponent {
1820
1820
  };
1821
1821
  }
1822
1822
  ngOnInit() {
1823
+ const queryParams = this.route.snapshot.queryParams;
1824
+ if (queryParams['routeTo']) {
1825
+ this.router.navigate([queryParams['routeTo']]);
1826
+ }
1823
1827
  var data = this.route.snapshot.data;
1824
1828
  var myPath = this.router.url.slice(-10);
1825
1829
  console.log("offender id at smart-victim");
@@ -1945,7 +1949,8 @@ class NgcSmartVictimComponent {
1945
1949
  duration: 3000,
1946
1950
  });
1947
1951
  //this.router.navigate(['/warrant '], { queryParams: { intake: 1 } });
1948
- this.document.location.href = `${this.smartWarrantUrl}/?offenderId=${this.offenderId}&routeTo=warrant`;
1952
+ this.document.location.href =
1953
+ `${this.smartWarrantUrl}/?offenderId=${this.offenderId}&intakeFlag=${this.isIntake}&routeTo=warrant`;
1949
1954
  });
1950
1955
  }
1951
1956
  goToCaseNote(victimId) {