Commit b623b067 authored by dev0tion's avatar dev0tion

Fix temporary navigation

parent 4b2572dd
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
}, },
"status": "status":
{ {
"success": "false", "success": "true",
"connectedNodeCount": "7", "connectedNodeCount": "7",
"maxConnextedNodeCount": "8", "maxConnextedNodeCount": "8",
"headerChainHeight": "1048", "headerChainHeight": "1048",
......
...@@ -24,11 +24,14 @@ export class AppComponent implements OnInit { ...@@ -24,11 +24,14 @@ export class AppComponent implements OnInit {
private checkWalletStatus(){ private checkWalletStatus(){
this.apiService.getWalletStatus() this.apiService.getWalletStatus()
.subscribe( .subscribe(
response => this.response = response.success, response => this.response = response,
error => this.errorMessage = <any>error error => this.errorMessage = <any>error,
() => this.navigate()
); );
}
if (this.response === "true") { private navigate() {
if (this.response.success === "true") {
// remote.dialog.showMessageBox({message: remote.app.getPath('userData')}) // remote.dialog.showMessageBox({message: remote.app.getPath('userData')})
this.router.navigate(['/login']) this.router.navigate(['/login'])
} else { } else {
......
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