complete previous commit - adding src/app/login/utils/guardHelper.class.ts
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@46952 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
cbd4dd39ea
commit
98a84db4d8
|
@ -0,0 +1,18 @@
|
|||
|
||||
import { Router} from '@angular/router';
|
||||
|
||||
// export class GuardHelper{
|
||||
// constructor(private router: Router) {}
|
||||
//
|
||||
// redirect(url:string, errorCode:number, redirectUrl:string){
|
||||
// this.router.navigate([url], { queryParams: { "errorCode": errorCode, "redirectUrl": redirectUrl } });
|
||||
//
|
||||
// }
|
||||
//
|
||||
// }
|
||||
export class ErrorCodes {
|
||||
public static NOT_LOGGIN:number =1;
|
||||
public static NOT_ADMIN:number =2;
|
||||
public static NOT_VALID:number =3;
|
||||
|
||||
}
|
Loading…
Reference in New Issue