Htl code is here:
<span class="fal fa-user green" style="cursor:pointer;" (click)="openlotModal(lotTemplate,item);"
title="Add Chapter" *ngIf="edit==true"></span>
Type script code is here:
openlotModal(template: TemplateRef<any>, item, event) {
const jobObject = new Object({
jobid: item.jobid
});
this.jobdefinitionservice.GetJobWorkFlowDefCount(jobObject).subscribe(res => {
if (res.body[0] != null) {
this.LoadChaptertypes();
this.TablePagination = {
itemsPerPage: 10,
maxPages: 5,
fillLastPage: false
};
this.job = item;
this.lotModalRef = this.modalService.show(template, this.configlot);
const aa = document.getElementsByClassName('modal-content');
aa[0].classList.remove('modal-content');
} else {
this.moveToJobDefinition(item);
this.toastr.warning('Please complete job configuration, then proceed');
}
});
}
I cant getting how to restrict the double click here