pd status changes
This commit is contained in:
parent
50da488c0c
commit
8694da1da6
@ -18,8 +18,8 @@ export class PdStatusChangeDialogueComponent implements OnInit {
|
|||||||
constructor(notifier: NotifierService , private pd: PdTrigerService,private dialogRef: MatDialogRef<PdStatusChangeDialogueComponent>,@Inject(MAT_DIALOG_DATA) public data: any)
|
constructor(notifier: NotifierService , private pd: PdTrigerService,private dialogRef: MatDialogRef<PdStatusChangeDialogueComponent>,@Inject(MAT_DIALOG_DATA) public data: any)
|
||||||
{
|
{
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.dialoge_title_content = this.data.pd_status=='INPROGRESS' ? 'Start PD' : this.data.pd_status=='COMPLETED' ? 'Complete PD' : 'Change PD Status';
|
this.dialoge_title_content = this.data.pd_status=='INPROGRESS' ? 'Start Discussions' : this.data.pd_status=='COMPLETED' ? 'Complete Discussions' : 'Change Discussions';
|
||||||
this.dialoge_content =this.data.pd_status=='INPROGRESS' ? 'Are you starting the Discussions ?' : this.data.pd_status=='COMPLETED' ? 'Please confirm you are completing the Discussions and forwarding for Quality Check ?' : 'Change PD Status';
|
this.dialoge_content =this.data.pd_status=='INPROGRESS' ? 'Are you starting the Discussions ?' : this.data.pd_status=='COMPLETED' ? 'Please confirm you are completing the Discussions and forwarding for Quality Check ?' : 'Change Discussions';
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -31,7 +31,7 @@ export class PdStatusChangeDialogueComponent implements OnInit {
|
|||||||
this.pd.editPdMasterDetails(update_status, this.data.pd_status).subscribe(result => {
|
this.pd.editPdMasterDetails(update_status, this.data.pd_status).subscribe(result => {
|
||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
this.dialogRef.close({update_status:true});
|
this.dialogRef.close({update_status:true});
|
||||||
this.notifier.notify('success', this.data.pd_status=='INPROGRESS' ? 'PD Started Successfully' : this.data.pd_status=='COMPLETED' ? 'PD Completed Successfully ?' : 'PD Updated Successfully');
|
this.notifier.notify('success', this.data.pd_status=='INPROGRESS' ? 'Discussions Started Successfully' : this.data.pd_status=='COMPLETED' ? 'Discussions Completed Successfully ?' : 'Discussions Updated Successfully');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.dialogRef.close({update_status:false});
|
this.dialogRef.close({update_status:false});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user