Commit a035ad9c authored by dev0tion's avatar dev0tion

Disable config dir msgbox

parent b4366998
......@@ -16,18 +16,18 @@ export class AppComponent implements OnInit {
private isConfigured: boolean = true;
ngOnInit() {
this.response = this.checkWalletStatus();
this.checkWalletStatus();
}
private checkWalletStatus(){
this.apiService.getWalletStatus()
.subscribe(
response => this.response = response,
response => this.response = response.success,
error => this.errorMessage = <any>error
);
if (this.response.success = "true") {
remote.dialog.showMessageBox({message: remote.app.getPath('userData')})
if (this.response = "true") {
// remote.dialog.showMessageBox({message: remote.app.getPath('userData')})
this.router.navigateByUrl('/wallet')
} else {
this.router.navigateByUrl('/setup')
......
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