From 7c153ec4e5d7c604734fc3a4c9d608e790e35908 Mon Sep 17 00:00:00 2001 From: Madhuravas Date: Wed, 27 Sep 2023 15:55:27 +0530 Subject: [PATCH] MOSIP-28824 resolved for showing popup link for unregister mobile number --- resident-ui/src/app/core/services/httpinterceptor.ts | 2 +- .../src/app/feature/verify/verify/verify.component.ts | 2 +- resident-ui/src/app/shared/dialog/dialog.component.html | 2 +- resident-ui/src/app/shared/dialog/dialog.component.ts | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/resident-ui/src/app/core/services/httpinterceptor.ts b/resident-ui/src/app/core/services/httpinterceptor.ts index 1dc9d097..e40bfb52 100644 --- a/resident-ui/src/app/core/services/httpinterceptor.ts +++ b/resident-ui/src/app/core/services/httpinterceptor.ts @@ -95,7 +95,7 @@ export class AuthInterceptor implements HttpInterceptor { this.ngOnInit(); if (err instanceof HttpErrorResponse) { if (err.status === 401 && err.statusText === "Unauthorized") { - + this.router.navigate['dashboard'] }else if (err.status === 403 && err.statusText === "Forbidden") { this.showMessage() } else if (err.status === 413) { diff --git a/resident-ui/src/app/feature/verify/verify/verify.component.ts b/resident-ui/src/app/feature/verify/verify/verify.component.ts index 815a6879..5d97f68c 100644 --- a/resident-ui/src/app/feature/verify/verify/verify.component.ts +++ b/resident-ui/src/app/feature/verify/verify/verify.component.ts @@ -381,7 +381,7 @@ export class VerifyComponent implements OnInit, OnDestroy { } else { this.message = this.popupMessages.serverErrors[this.errorCode] } - if (this.errorCode === "IDA-MLC-009") { + if (this.errorCode === "IDA-MLC-009" || this.errorCode === 'IDA-OTA-002') { this.dialog .open(DialogComponent, { width: '550px', diff --git a/resident-ui/src/app/shared/dialog/dialog.component.html b/resident-ui/src/app/shared/dialog/dialog.component.html index a9d4ed4e..8f26bed0 100644 --- a/resident-ui/src/app/shared/dialog/dialog.component.html +++ b/resident-ui/src/app/shared/dialog/dialog.component.html @@ -174,7 +174,7 @@

{{ input.title[primaryLangCode] }}

diff --git a/resident-ui/src/app/shared/dialog/dialog.component.ts b/resident-ui/src/app/shared/dialog/dialog.component.ts index 39271e96..6d4eb471 100644 --- a/resident-ui/src/app/shared/dialog/dialog.component.ts +++ b/resident-ui/src/app/shared/dialog/dialog.component.ts @@ -239,6 +239,11 @@ export class DialogComponent implements OnInit { dismissPage(){ this.dialog.closeAll() } + + dismissPageToHome(){ + this.dialog.closeAll() + this.router.navigate(['uinservices/dashboard']) + } logOut(){ this.redirectService.redirect(window.location.href); }