save issues in trigger : ps
This commit is contained in:
parent
15ee916b15
commit
8049d635b5
@ -436,7 +436,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
// common function for both draft and process pd
|
// common function for both draft and process pd
|
||||||
submitPdDetails(formValue: any, status: string) {
|
submitPdDetails(formValue: any, status: string) {
|
||||||
|
console.log('inside the submitPdDetails data');
|
||||||
if (this._PDtriggerForm.invalid) {
|
if (this._PDtriggerForm.invalid) {
|
||||||
this.validateAllFormFields(this._PDtriggerForm);
|
this.validateAllFormFields(this._PDtriggerForm);
|
||||||
this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!');
|
this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!');
|
||||||
@ -447,12 +447,10 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
this.notifier.notify('warning', 'Either Mobile or Landline Need.!');
|
this.notifier.notify('warning', 'Either Mobile or Landline Need.!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (formValue.mobile_no != null){
|
else if (formValue.mobile_no != null && formValue.mobile_no.length != 10){
|
||||||
if (formValue.mobile_no.length != 10){
|
this.notifier.notify('warning', 'Please Check Applicant Mobile Number.!');
|
||||||
this.notifier.notify('warning', 'Please Check Applicant Mobile Number.!');
|
return;
|
||||||
return;
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
this.disableAfterSubmit = true;
|
this.disableAfterSubmit = true;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user