@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.
@@ -675,6 +675,8 @@ class PhoneMaskDirective {
675
675
  newVal = newVal.replace(/^(\d{0,3})(\d{0,3})(\d{0,4})/, '($1) $2-$3');
676
676
  }
677
677
  this.ngControl.valueAccessor.writeValue(newVal);
678
+ console.log('newVal');
679
+ console.log(newVal);
678
680
  }
679
681
  }
680
682
  }
@@ -961,7 +963,6 @@ class SmartVictimDetailComponent {
961
963
  this.victimForm.reset();
962
964
  }
963
965
  ngOnInit() {
964
- console.log('on init 11/8/23');
965
966
  console.log('show offenderId');
966
967
  console.log(this.offenderId);
967
968
  console.log('show staffId');
@@ -1219,7 +1220,6 @@ class SmartVictimDetailComponent {
1219
1220
  }
1220
1221
  //#region "save victim"
1221
1222
  saveVictim() {
1222
- console.log('save vitem 11/7/23');
1223
1223
  //guardian phone logic
1224
1224
  if (!this.victimForm.value.guardianNoPhoneFlag) {
1225
1225
  if (this.victimForm.value.guardianHomePhone) {
@@ -1296,9 +1296,13 @@ class SmartVictimDetailComponent {
1296
1296
  }
1297
1297
  if (this.victimForm.value.homePhone) {
1298
1298
  this.victimForm.value.homePhone = this.victimForm.value.homePhone.replace(/[()\s-]/g, '');
1299
+ console.log('this.victimForm.value.homePhone 1');
1300
+ console.log(this.victimForm.value.homePhone);
1299
1301
  }
1300
1302
  else {
1301
1303
  this.victimForm.value.homePhone = null;
1304
+ console.log('this.victimForm.value.homePhone 2');
1305
+ console.log(this.victimForm.value.homePhone);
1302
1306
  }
1303
1307
  if (this.victimForm.value.workPhone) {
1304
1308
  this.victimForm.value.workPhone = this.victimForm.value.workPhone.replace(/[()\s-]/g, '');