@csmart/ngc-smart-victim 1.14.25 → 1.14.27
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.
- package/esm2020/lib/smart-victim-detail/smart-victim-detail.component.mjs +2 -2
- package/esm2020/lib/smart-victim.component.mjs +23 -7
- package/fesm2015/csmart-ngc-smart-victim.mjs +23 -7
- package/fesm2015/csmart-ngc-smart-victim.mjs.map +1 -1
- package/fesm2020/csmart-ngc-smart-victim.mjs +23 -7
- package/fesm2020/csmart-ngc-smart-victim.mjs.map +1 -1
- package/package.json +1 -1
- package/esm2020/lib/shared/directives/phone-mask.directive.mjs +0 -55
- package/lib/shared/directives/phone-mask.directive.d.ts +0 -11
|
@@ -1081,7 +1081,7 @@ class SmartVictimDetailComponent {
|
|
|
1081
1081
|
});
|
|
1082
1082
|
}
|
|
1083
1083
|
back() {
|
|
1084
|
-
|
|
1084
|
+
this.onSave.emit(this.victimDetail);
|
|
1085
1085
|
this.router.navigate(['victimList']);
|
|
1086
1086
|
}
|
|
1087
1087
|
deleteVictim() {
|
|
@@ -1914,8 +1914,13 @@ class NgcSmartVictimComponent {
|
|
|
1914
1914
|
//show phone number on the victim list if any phone number exist.
|
|
1915
1915
|
data.forEach((d) => {
|
|
1916
1916
|
if (d.homePhone == null || d.homePhone == "") {
|
|
1917
|
-
if (d.cellPhone != null
|
|
1918
|
-
d.
|
|
1917
|
+
if (d.cellPhone != null) {
|
|
1918
|
+
if (d.cellPhone != "") {
|
|
1919
|
+
d.homePhone = d.cellPhone;
|
|
1920
|
+
}
|
|
1921
|
+
else {
|
|
1922
|
+
d.homePhone = d.workPhone;
|
|
1923
|
+
}
|
|
1919
1924
|
}
|
|
1920
1925
|
else {
|
|
1921
1926
|
d.homePhone = d.workPhone;
|
|
@@ -1945,8 +1950,13 @@ class NgcSmartVictimComponent {
|
|
|
1945
1950
|
//show phone number on the victim list if any phone number exist.
|
|
1946
1951
|
data.forEach((d) => {
|
|
1947
1952
|
if (d.homePhone == null || d.homePhone == "") {
|
|
1948
|
-
if (d.cellPhone != null
|
|
1949
|
-
d.
|
|
1953
|
+
if (d.cellPhone != null) {
|
|
1954
|
+
if (d.cellPhone != "") {
|
|
1955
|
+
d.homePhone = d.cellPhone;
|
|
1956
|
+
}
|
|
1957
|
+
else {
|
|
1958
|
+
d.homePhone = d.workPhone;
|
|
1959
|
+
}
|
|
1950
1960
|
}
|
|
1951
1961
|
else {
|
|
1952
1962
|
d.homePhone = d.workPhone;
|
|
@@ -1961,6 +1971,7 @@ class NgcSmartVictimComponent {
|
|
|
1961
1971
|
}
|
|
1962
1972
|
}
|
|
1963
1973
|
}
|
|
1974
|
+
// phone number format on the victim list
|
|
1964
1975
|
formatPhoneNumber(phoneNumberString) {
|
|
1965
1976
|
if (!phoneNumberString)
|
|
1966
1977
|
return "";
|
|
@@ -2009,8 +2020,13 @@ class NgcSmartVictimComponent {
|
|
|
2009
2020
|
//show phone number on the victim list if any phone number exist.
|
|
2010
2021
|
data.forEach((d) => {
|
|
2011
2022
|
if (d.homePhone == null || d.homePhone == "") {
|
|
2012
|
-
if (d.cellPhone != null
|
|
2013
|
-
d.
|
|
2023
|
+
if (d.cellPhone != null) {
|
|
2024
|
+
if (d.cellPhone != "") {
|
|
2025
|
+
d.homePhone = d.cellPhone;
|
|
2026
|
+
}
|
|
2027
|
+
else {
|
|
2028
|
+
d.homePhone = d.workPhone;
|
|
2029
|
+
}
|
|
2014
2030
|
}
|
|
2015
2031
|
else {
|
|
2016
2032
|
d.homePhone = d.workPhone;
|