Commit b623b067 authored by dev0tion's avatar dev0tion

Fix temporary navigation

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