SMS Shared Added
This commit is contained in:
parent
a0737f1a4d
commit
a1d5005a03
@ -136,19 +136,25 @@
|
||||
<ng-container matColumnDef="Action">
|
||||
<mat-cell class="cell center" *matCellDef="let details;">
|
||||
<a style="float: left" [style.visibility]="details.pd_status=='INITIATED' && details.encrypted_url!=null && details.encrypted_url!='' ? 'visible' : 'hidden'" [attr.href]="details.encrypted_url" target="_blank">
|
||||
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary"
|
||||
<button mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary"
|
||||
matTooltip="Officer Tracking" matTooltipPosition="above">
|
||||
<mat-icon>my_location</mat-icon>
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="copyCusURL(details.random_string)"
|
||||
mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="copyCusURL(details.random_string)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
|
||||
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)"
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
|
||||
<button style="float: right" 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)"
|
||||
matTooltip="View" matTooltipPosition="above">
|
||||
<mat-icon>visibility</mat-icon>
|
||||
</button>
|
||||
|
||||
@ -245,5 +245,17 @@ export class AllPdComponent implements OnInit, OnChanges {
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Shared Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -125,6 +125,12 @@
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
|
||||
<button style ="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" matTooltip="View"
|
||||
matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button>
|
||||
</mat-cell>
|
||||
|
||||
@ -253,6 +253,18 @@ export class CompletedPdComponent implements OnInit, OnChanges {
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Shared Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -120,6 +120,11 @@
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" matTooltip="View" matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button>
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
@ -245,5 +245,17 @@ export class InprogressPdComponent implements OnInit, OnChanges {
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Shared Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -124,6 +124,12 @@
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
|
||||
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" color="primary" matTooltip="View" matTooltipPosition="above"><mat-icon>visibility</mat-icon></button>
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
@ -227,4 +227,16 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Shared Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -123,6 +123,13 @@
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>link</mat-icon>
|
||||
</button>
|
||||
|
||||
<button *ngIf="details.fk_pd_type == '3'"
|
||||
mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" color="primary" (click)="onClickSmsLink(details)"
|
||||
matTooltip="Copy Customer Link" matTooltipPosition="above">
|
||||
<mat-icon>sms</mat-icon>
|
||||
</button>
|
||||
|
||||
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" color="primary" matTooltip="View" matTooltipPosition="above"><mat-icon>visibility</mat-icon></button>
|
||||
</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
@ -241,6 +241,18 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
|
||||
this._pd.copyToClipBoard(cus_link);
|
||||
this.notifier.notify('info','Customer link copied');
|
||||
}
|
||||
onClickSmsLink(details){
|
||||
let param={
|
||||
pd_id: details.pd_id,
|
||||
mobile_no: details.applicat_details[0].mobile_no,
|
||||
random_string: details.random_string,
|
||||
}
|
||||
this._pd.smsLink(param).subscribe(res=>{
|
||||
if(res['dataStatus']){
|
||||
this.notifier.notify("info","SMS Shared Successfully")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user