digilocker enable button and gmeet alert

This commit is contained in:
bitbucket 2022-08-29 16:51:02 +05:30
parent 6b1fb13c8f
commit d1ebf31ee6
9 changed files with 73 additions and 12 deletions

Binary file not shown.

View File

@ -159,7 +159,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
pd_branch_id: [null],
lender_applicant_id: [null, Validators.compose([Validators.required])],
lender_sales_person:[null],
lender_credit_person:[null,Validators.compose([Validators.required])],
lender_credit_person:[null],
imgc_fin_institute:[null],
// lender_contact_person: [null],
// lender_contact_mobile: [null, Validators.compose([Validators.minLength(10), Validators.maxLength(12), Validators.pattern('^[0-9]*$')])],

View File

@ -163,7 +163,7 @@
<mat-icon>sms</mat-icon>
</button> -->
<button mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string,details.is_face_api_enabled)"
<button mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string,details)"
matTooltip="View" matTooltipPosition="above">
<mat-icon>visibility</mat-icon>
</button>

View File

@ -149,9 +149,11 @@ export class AllPdComponent implements OnInit, OnChanges {
pageChange(e) {
console.log(e);
}
viewPD(pdid:string,randomString,faceApiEnabled){
localStorage.setItem("is_face_api_enabled",faceApiEnabled)
console.log(pdid,randomString);
viewPD(pdid:string,randomString,details){
localStorage.setItem("digilocker_access",details.digilocker_access)
localStorage.setItem("is_face_api_enabled",details.is_face_api_enabled)
console.log(pdid,randomString,details);
let pdidwithRandomString = {'id':pdid,'string': randomString};
console.log(pdidwithRandomString);
this.loadPdView.emit(pdidwithRandomString);

View File

@ -119,10 +119,12 @@
matTooltipPosition="below" [style.visibility]="_generalForm.controls.individuals.value[i].is_main_applicant == true ? 'hidden':'visible'">
<mat-icon>delete</mat-icon>
</button>
<div *ngIf="digilocker_access_Enabled == 1" >
<button type="button" class="mr-1 hover-icon" mat-raised-button mat-icon-button (click)="digitallocker(details,i)"
matTooltip="DigiLocker " matTooltipPosition="below" [style.visibility]="_generalForm.controls.individuals.value[i].is_main_applicant == true ? 'hidden':'visible'">
<mat-icon>vpn_lock</mat-icon>
</button>
</div>
<div *ngIf="_generalForm.controls.individuals.value[i].is_person_met_pic" >
<img mat-card-avatar
src="{{_generalForm.controls.individuals.value[i].is_person_met_pic}}"

View File

@ -103,6 +103,7 @@ export class GeneralInfoComponent implements OnInit {
public filteredCompanyRelationShipList: ReplaySubject<any> = new ReplaySubject<any>(1);
lender_short_name: any;
faceApiEnabled: string;
digilocker_access_Enabled: string;
/********************** Declaration Section Ends Here *****************/
@ -129,9 +130,10 @@ export class GeneralInfoComponent implements OnInit {
this.role_id=localStorage.getItem('user_role')
console.log('User Role',this.role_id);
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''}
this.digilocker_access_Enabled = localStorage.getItem('digilocker_access')
this.faceApiEnabled = localStorage.getItem('is_face_api_enabled')
console.log(this.faceApiEnabled)
console.log(this.faceApiEnabled, this.digilocker_access_Enabled)
}
/********************** Constructor Section Ends Here ****************/
documentsAndFilesList: any = [];

View File

@ -6,7 +6,7 @@ import { ViewPdComponent } from '../view-pd.component';
import { PdTrigerService } from 'app/personal-discussion/pd-service/pd-triger.service';
import { VideoPlayerComponent } from 'app/video-chat/video-player/video-player.component';
import { UploadVideoComponent } from 'app/quality-check/upload-video/upload-video.component';
import Swal from 'sweetalert2';
@Component({
selector: 'app-image-video',
templateUrl: './image-video.component.html',
@ -149,7 +149,51 @@ export class ImageVideoComponent implements OnInit {
window.open(url,'_blank')
} else if(event == 'G_Meet'){
let url = this.google_Meet_Link
window.open(url,'_blank')
let swal:any = Swal
// swal.fire({
// title: 'Please ensure you press the call record option, else the video will not be saved',
// showDenyButton: true,
// showCancelButton: false,
// confirmButtonText: 'Ok',
// denyButtonText: `Don't save`,
// }).then((result) => {
// /* Read more about isConfirmed, isDenied below */
// if (result.isConfirmed) {
// // swal.fire('Saved!', '', 'success')
// window.open(url,'_blank')
// } else if (result.isDenied) {
// //swal.fire('Changes are not saved', '', 'info')
// }
// })
swal.fire({
title: '<i class="fa fa-info-circle"></i>',
icon: 'info',
html:
'<b style="color:green">Please ensure you press the call record option, else the video will not be saved</b>',
showCloseButton: true,
showCancelButton: false,
focusConfirm: false,
confirmButtonColor: '#008000',
confirmButtonText:
'<i class="fa fa-thumbs-up"></i> OK',
confirmButtonAriaLabel: 'Thumbs up, great!',
}).then((result) => {
console.log(result)
/* Read more about isConfirmed, isDenied below */
if (result.value == true) {
// swal.fire('Saved!', '', 'success')
window.open(url,'_blank')
} else if (result.isDenied) {
//swal.fire('Changes are not saved', '', 'info')
}
})
// Swal('Password Successfully Changed..!');
//this.notifier.notify('info',"Please ensure you press the call record option, else the video will not be saved");
// setTimeout(() => {
// window.open(url,'_blank')
// }, 3000);
}
}
openPlayer(){

View File

@ -241,7 +241,7 @@
</div>
</div>
<div fxLayout="row wrap" fxLayout.xs="column" fxLayoutGap="2%" fxLayoutAlign="center center">
<div fxFlex="40%">
<div fxFlex="30%">
<mat-form-field class="ml-xs" style="width:100%">
<mat-select placeholder="App Notify (Yes/No)" formControlName="is_app_notify_enabled">
<mat-option *ngFor="let opt of scoreCardOptions" [value]="opt.score_option_value">{{ opt.score_option_name }}</mat-option>
@ -249,14 +249,22 @@
<mat-error *ngIf="submitted && f.is_app_notify_enabled.hasError('required')" class="mat-text-warn">Field Required.</mat-error>
</mat-form-field>
</div>
<div fxFlex="40%">
<div fxFlex="30%">
<mat-form-field class="ml-xs" style="width:100%">
<mat-select placeholder="Facial Recognition" formControlName="is_face_api_enabled">
<mat-option *ngFor="let face of faceOption" [value]="face.face_option_value">{{face.face_name}}</mat-option>
</mat-select>
<mat-error *ngIf="submitted && f.is_face_api_enabled.hasError('required')" class="mat-text-warn">Field Required.</mat-error>
</mat-form-field>
</div>
</div>
<div fxFlex="30%">
<mat-form-field class="ml-xs" style="width:100%">
<mat-select placeholder="DigiLocker" formControlName="digilocker_access">
<mat-option *ngFor="let digi of digiLockerOption" [value]="digi.digiLocker_option_value">{{digi.digiLocker_name}}</mat-option>
</mat-select>
<mat-error *ngIf="submitted && f.digilocker_access.hasError('required')" class="mat-text-warn">Field Required.</mat-error>
</mat-form-field>
</div>
</div>
<div></div>

View File

@ -36,6 +36,7 @@ export class EntityEditComponent implements OnInit, OnDestroy {
@Input() public childMessage: any;
public faceOption: any = [{'face_name':'Yes','face_option_value':'1'},{'face_name':'No','face_option_value':'0'}];
public digiLockerOption: any = [{'digiLocker_name':'Yes','digiLocker_option_value':'1'},{'digiLocker_name':'No','digiLocker_option_value':'0'}];
public scoreCardOptions: any = [{'score_option_name':'Yes','score_option_value':'1'},{'score_option_name':'No','score_option_value':'0'}];
@ -82,6 +83,7 @@ export class EntityEditComponent implements OnInit, OnDestroy {
if (data.records) {
this.noEntityNameFound = false;
this.entityNameRecord = data.records.data[0];
console.log( this.entityNameRecord)
this.localEntityType = this.entityNameRecord.fk_entity_type_id;
this.setFormDatas();
} else {
@ -101,6 +103,7 @@ export class EntityEditComponent implements OnInit, OnDestroy {
full_name: [this.entityNameRecord.full_name, Validators.compose([Validators.required]) ],
short_name: [this.entityNameRecord.short_name, Validators.compose([Validators.required]) ],
is_face_api_enabled: [this.entityNameRecord.is_face_api_enabled, Validators.compose([Validators.required])],
digilocker_access: [this.entityNameRecord.digilocker_access, Validators.compose([Validators.required])],
is_score_card_enabled:[this.entityNameRecord.is_score_card_enabled || '',Validators.compose([Validators.required])],
is_otp_enabled:[this.entityNameRecord.is_otp_enabled || '',Validators.compose([Validators.required])],
is_sms_enabled:[this.entityNameRecord.is_sms_enabled || '',Validators.compose([Validators.required])],