Skip to content

Commit

Permalink
MOSIP-28824 resolved for showing popup link for unregister mobile number
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhuravas committed Sep 27, 2023
1 parent e5f205e commit 7c153ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resident-ui/src/app/core/services/httpinterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion resident-ui/src/app/shared/dialog/dialog.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ <h2 class="filter-heading">{{ input.title[primaryLangCode] }}</h2>
</div>
</div>
<div mat-dialog-actions class="pop-up-footer">
<button class="ok-button" mat-button cdkFocusInitial (click)="dismissPage()">{{input.btnTxt}}</button>
<button class="ok-button" mat-button cdkFocusInitial (click)="dismissPageToHome()">{{input.btnTxt}}</button>
</div>
</div>

Expand Down
5 changes: 5 additions & 0 deletions resident-ui/src/app/shared/dialog/dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7c153ec

Please sign in to comment.