@csmart/ngc-smart-victim 1.14.24 → 1.14.26
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,20 +1910,25 @@ 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) => {
|
1917
1916
|
if (d.homePhone == null || d.homePhone == "") {
|
1918
|
-
if (d.cellPhone != null
|
1919
|
-
d.
|
1917
|
+
if (d.cellPhone != null) {
|
1918
|
+
if (d.cellPhone != "") {
|
1919
|
+
d.homePhone = d.cellPhone;
|
1920
|
+
}
|
1921
|
+
else {
|
1922
|
+
d.homePhone = d.workPhone;
|
1923
|
+
}
|
1920
1924
|
}
|
1921
1925
|
else {
|
1922
1926
|
d.homePhone = d.workPhone;
|
1923
1927
|
}
|
1924
1928
|
}
|
1925
1929
|
});
|
1926
|
-
|
1930
|
+
this.victimListDataSource.data = data;
|
1931
|
+
console.log("victim data at line 245");
|
1927
1932
|
console.log(this.victims);
|
1928
1933
|
console.log("showListFlag");
|
1929
1934
|
console.log(this.showListFlag);
|
@@ -1941,9 +1946,25 @@ class NgcSmartVictimComponent {
|
|
1941
1946
|
this.victimService
|
1942
1947
|
.getVictimListByFilter(this.victimListFilter)
|
1943
1948
|
.subscribe((data) => {
|
1944
|
-
this.victimListDataSource.data = data;
|
1945
1949
|
this.victims = data;
|
1946
|
-
|
1950
|
+
//show phone number on the victim list if any phone number exist.
|
1951
|
+
data.forEach((d) => {
|
1952
|
+
if (d.homePhone == null || d.homePhone == "") {
|
1953
|
+
if (d.cellPhone != null) {
|
1954
|
+
if (d.cellPhone != "") {
|
1955
|
+
d.homePhone = d.cellPhone;
|
1956
|
+
}
|
1957
|
+
else {
|
1958
|
+
d.homePhone = d.workPhone;
|
1959
|
+
}
|
1960
|
+
}
|
1961
|
+
else {
|
1962
|
+
d.homePhone = d.workPhone;
|
1963
|
+
}
|
1964
|
+
}
|
1965
|
+
});
|
1966
|
+
this.victimListDataSource.data = data;
|
1967
|
+
console.log("victim data at line 279");
|
1947
1968
|
console.log(data);
|
1948
1969
|
});
|
1949
1970
|
}
|
@@ -1992,10 +2013,26 @@ class NgcSmartVictimComponent {
|
|
1992
2013
|
console.log(this.victimListFilter);
|
1993
2014
|
this.doSpin = true;
|
1994
2015
|
this.victimService.getVictimListByFilter(filter).subscribe((data) => {
|
1995
|
-
this.victimListDataSource.data = data;
|
1996
2016
|
this.doSpin = !this.doSpin;
|
1997
2017
|
if (data.length > 0) {
|
1998
2018
|
this.showListFlag = true;
|
2019
|
+
//show phone number on the victim list if any phone number exist.
|
2020
|
+
data.forEach((d) => {
|
2021
|
+
if (d.homePhone == null || d.homePhone == "") {
|
2022
|
+
if (d.cellPhone != null) {
|
2023
|
+
if (d.cellPhone != "") {
|
2024
|
+
d.homePhone = d.cellPhone;
|
2025
|
+
}
|
2026
|
+
else {
|
2027
|
+
d.homePhone = d.workPhone;
|
2028
|
+
}
|
2029
|
+
}
|
2030
|
+
else {
|
2031
|
+
d.homePhone = d.workPhone;
|
2032
|
+
}
|
2033
|
+
}
|
2034
|
+
});
|
2035
|
+
this.victimListDataSource.data = data;
|
1999
2036
|
}
|
2000
2037
|
else {
|
2001
2038
|
this.msg = "No record found!";
|