Commit a035ad9c authored by dev0tion's avatar dev0tion

Disable config dir msgbox

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