Project

General

Profile

« Previous | Next » 

Revision 53689

In display claims redirect when session expires.
Update messages in user login errors

View differences:

displayClaims.component.ts
8 8
import {AlertModal} from '../../../utils/modal/alert';
9 9
import {Session} from '../../../login/utils/helper.class';
10 10
import{EnvProperties} from '../../../utils/properties/env-properties';
11
import {LoginErrorCodes} from '../../../login/utils/guardHelper.class';
11 12

  
12 13

  
13 14
@Component({
......
122 123
  getClaims () {
123 124
    if(!Session.isLoggedIn()){
124 125
      this.userValidMessage = "User session has expired. Please login again.";
125

  
126
      this._router.navigate(['/user-info'], { queryParams: { "errorCode": LoginErrorCodes.NOT_VALID, "redirectUrl":  this._router.url} });
126 127
    }else{
127 128
    this.selected=[];
128 129
    var types = '';
......
463 464
    deleteById(id:string){
464 465
      if(!Session.isLoggedIn()){
465 466
        this.userValidMessage = "User session has expired. Please login again.";
467
        this._router.navigate(['/user-info'], { queryParams: { "errorCode": LoginErrorCodes.NOT_VALID, "redirectUrl":  this._router.url} });
466 468

  
467 469
      }else{
468 470
         console.log("Deleting claim with id:"+id);
......
495 497
    batchDeleteById(ids:string[]){
496 498
      if(!Session.isLoggedIn()){
497 499
        this.userValidMessage = "User session has expired. Please login again.";
498

  
500
        this._router.navigate(['/user-info'], { queryParams: { "errorCode": LoginErrorCodes.NOT_VALID, "redirectUrl":  this._router.url} });
499 501
      }else{
500 502
         console.warn("Deleting claim with ids:"+ids);
501 503
         this._claimService.deleteBulk(ids,this.properties.claimsAPIURL).subscribe(

Also available in: Unified diff