Google Video added
This commit is contained in:
parent
1d5eaffe95
commit
19b1d9743d
@ -113,6 +113,11 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
|
||||
FabOptions = {
|
||||
buttons: [
|
||||
{
|
||||
icon: 'video_call',
|
||||
placeholder:'Google Meet',
|
||||
btnValue:'G_Meet'
|
||||
},
|
||||
{
|
||||
icon: 'camera',
|
||||
placeholder:'Image Capture',
|
||||
@ -123,9 +128,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
placeholder:'Video Chat',
|
||||
btnValue:'video'
|
||||
},
|
||||
// {
|
||||
// icon: 'room'
|
||||
// },
|
||||
|
||||
// {
|
||||
// icon: 'lightbulb_outline'
|
||||
// },
|
||||
@ -155,12 +158,22 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
// this.viewID = this.route.snapshot.params['pdid'];
|
||||
// this.masterRandomString = this.route.snapshot.params['rdmstr'];
|
||||
this.updateGoogleVideoStatus();
|
||||
this.viewPdDetails(this.viewID,this.masterRandomString);
|
||||
this.getAllNotes();
|
||||
}
|
||||
pd_QC_Rating: Number;
|
||||
|
||||
|
||||
updateGoogleVideoStatus() {
|
||||
console.log(this.viewID);
|
||||
this._pd.update_GVideoStatus(this.viewID).subscribe(data => {
|
||||
if (data.status == 200) {
|
||||
console.log('updateGoogleVideoStatus')
|
||||
}
|
||||
}, error => {
|
||||
console.log('%c Something Went Wrong Try Again.! \t\"' + (error.error_type == 2 ? error.error_status + ' ( ' + error.error_text + ' ) ' : ' ( ' + error.error_text + ' ) ') +'\" Error Occur.!', 'font-weight: bold; font-size: 50px;color: red; ');
|
||||
});
|
||||
}
|
||||
|
||||
viewPdDetails(editID: string,masterRandomString : string) {
|
||||
// console.log('inside Function',masterRandomString);
|
||||
@ -692,6 +705,9 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
else if(event && event.btnValue == 'image') {
|
||||
cus_link = window.location.origin+'/customer/#/pd-images/'+this.pdMasterData[0].random_string;
|
||||
} else if(event && event.btnValue == 'G_Meet'){
|
||||
console.log('G_meet')
|
||||
cus_link = 'http://meet.google.com/'+this.pdMasterData[0].gmeet_code;
|
||||
}
|
||||
// return;
|
||||
// let cus_link = window.location.origin+'/customer/#/pd-images/'+randomStr;
|
||||
|
||||
@ -304,6 +304,13 @@ export class PdTrigerService {
|
||||
)
|
||||
}
|
||||
|
||||
update_GVideoStatus(pdid: any): Observable<any> {
|
||||
return this._http.get(this.apiUrl+'updateGoogleVideoStatus?pdid='+pdid)
|
||||
.pipe(
|
||||
catchError(this.handleError('role', []))
|
||||
)
|
||||
}
|
||||
|
||||
// update pd applicant
|
||||
updatePdApplicant(editData: any): Observable<any> {
|
||||
// editData.fk_updatedby = this._aws.getlocale();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user