diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
index 1275c08b4..615ef3f81 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
@@ -22,6 +22,7 @@ import Swal from 'sweetalert2';
import { VideoChatComponent } from 'app/video-chat/video-chat.component';
import { MastersComponent } from 'app/settings/masters/masters.component';
import { VideoPlayerComponent } from 'app/video-chat/video-player/video-player.component';
+import { VendorPdAllocationComponent } from '../vendor-pd-allocation/VendorPdAllocationComponent';
@Component({
selector: 'app-view-pd',
@@ -128,6 +129,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
]
};
videoplayback: any = {enableBtn:false,url:null};
+ openvendorallocation: any;
constructor(notifier: NotifierService, private dialog: MatDialog, private _fb: FormBuilder,
private _pd: PdTrigerService, private route: ActivatedRoute, private router: Router, private ListPdComponent: ListPdComponent) {
@@ -371,8 +373,27 @@ export class ViewPdComponent implements OnInit, OnDestroy {
});
dialogRef.afterClosed()
.subscribe(dataresult => {
+ console.log(dataresult)
+ if(dataresult == 'openvendorallocation'){
+ const dialogSchedule = this.dialog.open(VendorPdAllocationComponent, {
+ data: pdData,
+ disableClose: true,
+ position: { right: '0'},
+ width:'100%',
+ // hasBackdrop:false
+ });
+ dialogSchedule.afterClosed()
+ .subscribe(dataresult => {
+ this.viewPdDetails(this.viewID,this.masterRandomString)
+ });
+ // this.notifier.notify('warning', 'No PD In Hand');
+ }else{
// this.notifier.notify('success', 'Successfully allocated.!');
this.viewPdDetails(this.viewID,this.masterRandomString)
+ }
+
+
+
});
}
// else if (pdData.fk_pd_type == 2) {
diff --git a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts
index a3d04af14..1306bda8e 100755
--- a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts
+++ b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts
@@ -304,7 +304,7 @@ export class PdTrigerService {
}
// update Vendor
updateVendor(updateData: any): Observable
{
- // updateData.fk_updatedby = this._aws.getlocale();
+ updateData.fk_updatedby = this._aws.getlocale();
// updateData.updatedon = currentdate;
return this._http.post(this.apiUrl + "allocatePD", { "records": updateData })
.pipe(