Commit 789fb4b9 authored by dev0tion's avatar dev0tion

Fix indents and some clean up

parent 742c231f
......@@ -16,25 +16,5 @@ export class AppComponent implements OnInit {
ngOnInit() {
this.router.navigate(['/login']);
//this.checkWalletStatus();
}
// private checkWalletStatus(){
// this.apiService.getWalletStatus()
// .subscribe(
// response => {
// if (response.status >= 200 && response.status < 400) {
// this.responseMessage = response;
// this.router.navigate(['/login']);
// }
// },
// error => {
// this.errorMessage = <any>error;
// if (error.status === 400 || error.status === 404) {
// this.router.navigate(['/setup']);
// console.log(this.errorMessage);
// }
// }
// );
// }
}
......@@ -11,6 +11,7 @@ import { WalletLoad } from '../shared/classes/wallet-load';
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginComponent implements OnInit {
constructor(private globalService: GlobalService, private apiService: ApiService, private router: Router, private fb: FormBuilder) {
this.buildDecryptForm();
......@@ -109,7 +110,8 @@ export class LoginComponent implements OnInit {
console.log(errorMessage);
}
}
);
)
;
}
private loadWallet(walletLoad: WalletLoad) {
......@@ -131,6 +133,7 @@ export class LoginComponent implements OnInit {
console.log(errorMessage);
}
}
);
)
;
}
}
......@@ -21,7 +21,6 @@ export class CreateComponent {
private createWalletForm: FormGroup;
private newWallet: WalletCreation;
private mnemonic: string;
private buildCreateForm(): void {
......@@ -104,6 +103,7 @@ export class CreateComponent {
console.log(errorMessage);
}
}
);
)
;
}
}
......@@ -62,7 +62,8 @@ export class DashboardComponent {
console.log(errorMessage);
}
}
);
)
;
};
private getHistory() {
......@@ -82,6 +83,7 @@ export class DashboardComponent {
console.log(errorMessage);
}
}
);
)
;
};
}
......@@ -46,6 +46,7 @@ export class HistoryComponent {
console.log(this.errorMessage);
}
}
);
)
;
}
}
......@@ -23,10 +23,6 @@ export class ReceiveComponent {
this.getUnusedReceiveAddresses();
}
private copyAddress() {
}
private getUnusedReceiveAddresses() {
let walletInfo = new WalletInfo(this.globalService.getWalletName(), this.globalService.getCoinType())
this.apiService.getUnusedReceiveAddress(walletInfo)
......@@ -42,6 +38,7 @@ export class ReceiveComponent {
console.log(this.errorMessage);
}
}
);
)
;
}
}
......@@ -103,7 +103,8 @@ export class SendComponent {
}
},
() => this.sendTransaction(this.responseMessage.hex)
);
)
;
};
private getFeeType(){
......@@ -136,6 +137,7 @@ export class SendComponent {
console.log(this.errorMessage);
}
}
);
)
;
}
}
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