Commit 5d26bb90 authored by prumde's avatar prumde

Updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174503 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4fbfd1f7
...@@ -85,9 +85,6 @@ export class EcmCheckoutComponent implements OnInit { ...@@ -85,9 +85,6 @@ export class EcmCheckoutComponent implements OnInit {
} }
}); });
if(this.checkUser() == 'undefined' && this.checkUser() == null && this.checkUser() == 'null'){
this.step = 0;
}
} }
ngAfterViewChecked(): void { ngAfterViewChecked(): void {
...@@ -192,16 +189,18 @@ export class EcmCheckoutComponent implements OnInit { ...@@ -192,16 +189,18 @@ export class EcmCheckoutComponent implements OnInit {
}); });
} }
checkUser(){ createUserData() {
var userInfo = localStorage.getItem( 'userInfo' ); var userInfo = localStorage.getItem( 'userInfo' );
if ( userInfo !== 'undefined' && userInfo !== null && userInfo !== 'null' ) if ( userInfo !== 'undefined' && userInfo !== null && userInfo !== 'null' )
{ {
return userInfo; this.userData = JSON.parse( userInfo );
this.selectedStep = 1;
} }
else else
{ {
return userInfo; this.userData = null;
} }
console.log( 'ECMHeaderComponent getUserInfo ::' + userInfo + ' \n this.userData :: ' + this.userData );
} }
step; step;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment