@csmart/ngc-smart-victim 1.14.24 → 1.14.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1910,7 +1910,6 @@ class NgcSmartVictimComponent {
1910
1910
  this.victimService
1911
1911
  .getVictimListByFilter(victimListFilter)
1912
1912
  .subscribe((data) => {
1913
- this.victimListDataSource.data = data;
1914
1913
  this.victims = data;
1915
1914
  //show phone number on the victim list if any phone number exist.
1916
1915
  data.forEach((d) => {
@@ -1923,7 +1922,8 @@ class NgcSmartVictimComponent {
1923
1922
  }
1924
1923
  }
1925
1924
  });
1926
- console.log("victim data at line 179");
1925
+ this.victimListDataSource.data = data;
1926
+ console.log("victim data at line 245");
1927
1927
  console.log(this.victims);
1928
1928
  console.log("showListFlag");
1929
1929
  console.log(this.showListFlag);
@@ -1941,9 +1941,20 @@ class NgcSmartVictimComponent {
1941
1941
  this.victimService
1942
1942
  .getVictimListByFilter(this.victimListFilter)
1943
1943
  .subscribe((data) => {
1944
- this.victimListDataSource.data = data;
1945
1944
  this.victims = data;
1946
- console.log("victim data at line 201");
1945
+ //show phone number on the victim list if any phone number exist.
1946
+ data.forEach((d) => {
1947
+ if (d.homePhone == null || d.homePhone == "") {
1948
+ if (d.cellPhone != null || d.cellPhone != "") {
1949
+ d.homePhone = d.cellPhone;
1950
+ }
1951
+ else {
1952
+ d.homePhone = d.workPhone;
1953
+ }
1954
+ }
1955
+ });
1956
+ this.victimListDataSource.data = data;
1957
+ console.log("victim data at line 279");
1947
1958
  console.log(data);
1948
1959
  });
1949
1960
  }
@@ -1992,10 +2003,21 @@ class NgcSmartVictimComponent {
1992
2003
  console.log(this.victimListFilter);
1993
2004
  this.doSpin = true;
1994
2005
  this.victimService.getVictimListByFilter(filter).subscribe((data) => {
1995
- this.victimListDataSource.data = data;
1996
2006
  this.doSpin = !this.doSpin;
1997
2007
  if (data.length > 0) {
1998
2008
  this.showListFlag = true;
2009
+ //show phone number on the victim list if any phone number exist.
2010
+ data.forEach((d) => {
2011
+ if (d.homePhone == null || d.homePhone == "") {
2012
+ if (d.cellPhone != null || d.cellPhone != "") {
2013
+ d.homePhone = d.cellPhone;
2014
+ }
2015
+ else {
2016
+ d.homePhone = d.workPhone;
2017
+ }
2018
+ }
2019
+ });
2020
+ this.victimListDataSource.data = data;
1999
2021
  }
2000
2022
  else {
2001
2023
  this.msg = "No record found!";