alert : ps
This commit is contained in:
parent
b20e611df8
commit
fda7d9028d
@ -61,7 +61,7 @@ export class PersonalInfoComponent implements OnInit {
|
|||||||
errorMessage:any;
|
errorMessage:any;
|
||||||
|
|
||||||
|
|
||||||
constructor(notifier: NotifierService,private _fb: FormBuilder,private _pd: PdTrigerService , @Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
constructor(notifier: NotifierService,private _fb: FormBuilder,private _pd: PdTrigerService , @Inject(MAT_DIALOG_DATA) public pd_all_details: any,private dialogRef: MatDialogRef<PersonalInfoComponent>) {
|
||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.form_id = 3;
|
this.form_id = 3;
|
||||||
@ -376,6 +376,9 @@ submitPersonalForm(formData:any) {
|
|||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
this.notifier.notify('success', 'Success.');
|
this.notifier.notify('success', 'Success.');
|
||||||
this.loadPDDetails();
|
this.loadPDDetails();
|
||||||
|
setTimeout(() =>{
|
||||||
|
this.dialogRef.close();
|
||||||
|
},3000);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user