Fixed Length configuration in Loan Accounts

This commit is contained in:
Jose Alberto Hernandez
2024-03-19 07:56:04 -06:00
committed by Jose Alberto Hernandez
parent e4274c55bb
commit 466efacbd8
24 changed files with 163 additions and 79 deletions
@@ -17,7 +17,7 @@ import { DeleteDialogComponent } from '../../../shared/delete-dialog/delete-dial
templateUrl: './view-collateral.component.html',
styleUrls: ['./view-collateral.component.scss']
})
export class ViewCollateralComponent implements OnInit {
export class ViewCollateralComponent {
/** Collateral Data */
collateralData: any;
@@ -34,21 +34,18 @@ export class ViewCollateralComponent implements OnInit {
private route: ActivatedRoute,
private router: Router,
private dialog: MatDialog,
private translateService:TranslateService) {
private translateService: TranslateService) {
this.route.data.subscribe((data: { collateral: any }) => {
this.collateralData = data.collateral;
});
}
ngOnInit(): void {
}
}
/**
* Deletes the collateral and redirects to collaterals
*/
deleteCollateral() {
const deleteCollateralDialogRef = this.dialog.open(DeleteDialogComponent, {
data: { deleteContext: this.translateService.instant('labels.text.Collateral') + " " + this.collateralData.id}
data: { deleteContext: this.translateService.instant('labels.text.Collateral') + ' ' + this.collateralData.id}
});
deleteCollateralDialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) {
@@ -21,7 +21,3 @@ mat-divider {
.margin-t {
margin-top: 1em;
}
.label-field {
margin-top: 32px;
}