+2
-2
@@ -3,7 +3,7 @@
|
||||
<fa-icon icon="edit"></fa-icon>
|
||||
Edit
|
||||
</button>
|
||||
<button mat-raised-button color="warn" (click)="deleteCharge()">
|
||||
<button mat-raised-button color="warn" (click)="deleteCriteria()">
|
||||
<fa-icon icon="trash"></fa-icon>
|
||||
Delete
|
||||
</button>
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
<div>
|
||||
|
||||
<table mat-table [dataSource]="dataSource">
|
||||
<table mat-table class="mat-elevation-z1" [dataSource]="dataSource">
|
||||
|
||||
<ng-container matColumnDef="category">
|
||||
<th mat-header-cell *matHeaderCellDef> Category </th>
|
||||
|
||||
+4
-4
@@ -64,11 +64,11 @@ export class ViewLoanProvisioningCriteriaComponent implements OnInit {
|
||||
/**
|
||||
* Delete Selected Provisioning Criteria.
|
||||
*/
|
||||
deleteCharge() {
|
||||
const deleteChargeDialogRef = this.dialog.open(DeleteDialogComponent, {
|
||||
data: { deleteContext: `loanProvisioningCriteria ${this.provisioningData.criteriaId}` }
|
||||
deleteCriteria() {
|
||||
const deleteCriteriaDialogRef = this.dialog.open(DeleteDialogComponent, {
|
||||
data: { deleteContext: `Loan Provisioning Criteria id: ${this.provisioningData.criteriaId}` }
|
||||
});
|
||||
deleteChargeDialogRef.afterClosed().subscribe((response: any) => {
|
||||
deleteCriteriaDialogRef.afterClosed().subscribe((response: any) => {
|
||||
if (response.delete) {
|
||||
this.organizationService.deleteProvisioningCriteria(this.provisioningData.criteriaId)
|
||||
.subscribe(() => {
|
||||
|
||||
Reference in New Issue
Block a user