translated the heading of the dialogBox in .ts files
This commit is contained in:
committed by
Adam Saghy
parent
9766644fb8
commit
21dc452e36
@@ -49,11 +49,11 @@ export class LoansViewComponent implements OnInit {
|
||||
currency: Currency;
|
||||
|
||||
constructor(private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
public loansService: LoansService,
|
||||
private translateService:TranslateService,
|
||||
public dialog: MatDialog) {
|
||||
this.route.data.subscribe((data: { loanDetailsData: any, loanDatatables: any, loanArrearsDelinquencyConfig: any}) => {
|
||||
private router: Router,
|
||||
public loansService: LoansService,
|
||||
private translateService: TranslateService,
|
||||
public dialog: MatDialog) {
|
||||
this.route.data.subscribe((data: { loanDetailsData: any, loanDatatables: any, loanArrearsDelinquencyConfig: any }) => {
|
||||
this.loanDetailsData = data.loanDetailsData;
|
||||
this.loanDatatables = data.loanDatatables;
|
||||
this.loanDisplayArrearsDelinquency = data.loanArrearsDelinquencyConfig.value || 0;
|
||||
@@ -176,7 +176,7 @@ export class LoansViewComponent implements OnInit {
|
||||
this.deleteLoanAccount();
|
||||
break;
|
||||
case 'Modify Application':
|
||||
this.router.navigate(['edit-loans-account'], { relativeTo: this.route});
|
||||
this.router.navigate(['edit-loans-account'], { relativeTo: this.route });
|
||||
break;
|
||||
case 'Transfer Funds':
|
||||
const queryParams: any = { loanId: this.loanId, accountType: 'fromloans' };
|
||||
@@ -193,7 +193,7 @@ export class LoansViewComponent implements OnInit {
|
||||
*/
|
||||
private recoverFromGuarantor() {
|
||||
const recoverFromGuarantorDialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
||||
data: { heading: 'Recover from Guarantor', dialogContext: this.translateService.instant('labels.dialogContext.Are you sure you want recover from Guarantor'), type: 'Mild' }
|
||||
data: { heading: this.translateService.instant('labels.heading.Recover from Guarantor'), dialogContext: this.translateService.instant('labels.dialogContext.Are you sure you want recover from Guarantor'), type: 'Mild' }
|
||||
});
|
||||
recoverFromGuarantorDialogRef.afterClosed().subscribe((response: any) => {
|
||||
if (response.confirm) {
|
||||
|
||||
Reference in New Issue
Block a user