From 7a6cecc82862df5840712f8d93cff5450666151d Mon Sep 17 00:00:00 2001 From: samruddhikasar05-bit Date: Thu, 19 Mar 2026 16:26:18 +0530 Subject: [PATCH 1/2] WEB-862: Handle API errors using userMessageGlobalisationCode with localisation --- .../loans/loans-view/loans-view.component.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/app/loans/loans-view/loans-view.component.ts b/src/app/loans/loans-view/loans-view.component.ts index 8d6ab3b9d9..62fb71102a 100644 --- a/src/app/loans/loans-view/loans-view.component.ts +++ b/src/app/loans/loans-view/loans-view.component.ts @@ -240,10 +240,19 @@ export class LoansViewComponent implements OnInit { }); this.datatablesReady = true; }, - error: () => { - // If API fails, keep all datatables (fallback to current behavior) - this.datatablesReady = true; - } + error: (err) => { + this.datatablesReady = true; + + const errors = err.error?.errors; + + if (errors && errors.length > 0) { + const message = errors + .map(e => this.translate.instant(e.userMessageGlobalisationCode)) + .join(' '); + + alert(message); // or notification service if exists + } +} }); } From 2f145deb09b7b03e70a1d83c44e9aaabad15e19f Mon Sep 17 00:00:00 2001 From: samruddhikasar05-bit Date: Thu, 19 Mar 2026 19:49:48 +0530 Subject: [PATCH 2/2] WEB-542: Fix breadcrumb and tittle to use translation keys --- src/app/savings/savings-routing.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/savings/savings-routing.module.ts b/src/app/savings/savings-routing.module.ts index 9884bd14a8..8bc07eadc6 100644 --- a/src/app/savings/savings-routing.module.ts +++ b/src/app/savings/savings-routing.module.ts @@ -60,7 +60,7 @@ const routes: Routes = [ children: [ { path: 'create', - data: { title: 'Create Savings Account', breadcrumb: 'Create Savings Account' }, + data: { title: 'labels.createSavingsAccount', breadcrumb: 'labels.createSavingsAccount' }, component: CreateSavingsAccountComponent, resolve: { savingsAccountTemplate: SavingsAccountTemplateResolver