@csmart/ngc-smart-victim 1.14.8 → 1.14.10-ng

Sign up to get free protection for your applications and to get access to all the features.
@@ -679,6 +679,8 @@ class PhoneMaskDirective {
679
679
  newVal = newVal.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/, '($1) $2-$3');
680
680
  }
681
681
  this.ngControl.valueAccessor.writeValue(newVal);
682
+ console.log('newVal');
683
+ console.log(newVal);
682
684
  }
683
685
  }
684
686
  }
@@ -965,7 +967,6 @@ class SmartVictimDetailComponent {
965
967
  this.victimForm.reset();
966
968
  }
967
969
  ngOnInit() {
968
- console.log('on init 11/8/23');
969
970
  console.log('show offenderId');
970
971
  console.log(this.offenderId);
971
972
  console.log('show staffId');
@@ -1223,7 +1224,6 @@ class SmartVictimDetailComponent {
1223
1224
  }
1224
1225
  //#region "save victim"
1225
1226
  saveVictim() {
1226
- console.log('save vitem 11/7/23');
1227
1227
  //guardian phone logic
1228
1228
  if (!this.victimForm.value.guardianNoPhoneFlag) {
1229
1229
  if (this.victimForm.value.guardianHomePhone) {
@@ -1300,9 +1300,13 @@ class SmartVictimDetailComponent {
1300
1300
  }
1301
1301
  if (this.victimForm.value.homePhone) {
1302
1302
  this.victimForm.value.homePhone = this.victimForm.value.homePhone.replace(/[()\s-]/g, '');
1303
+ console.log('this.victimForm.value.homePhone 1');
1304
+ console.log(this.victimForm.value.homePhone);
1303
1305
  }
1304
1306
  else {
1305
1307
  this.victimForm.value.homePhone = null;
1308
+ console.log('this.victimForm.value.homePhone 2');
1309
+ console.log(this.victimForm.value.homePhone);
1306
1310
  }
1307
1311
  if (this.victimForm.value.workPhone) {
1308
1312
  this.victimForm.value.workPhone = this.victimForm.value.workPhone.replace(/[()\s-]/g, '');