Commit 41cc4367 authored by dev0tion's avatar dev0tion

Fix production build

parent b62e58f8
...@@ -19,7 +19,7 @@ export class AppComponent implements OnInit { ...@@ -19,7 +19,7 @@ export class AppComponent implements OnInit {
constructor(private router: Router, private apiService: ApiService, private titleService: Title) {} constructor(private router: Router, private apiService: ApiService, private titleService: Title) {}
private errorMessage: any; private errorMessage: any;
private responseMessage: any; private responseMessage: any;
private loading: boolean = true; public loading: boolean = true;
ngOnInit() { ngOnInit() {
this.setTitle(); this.setTitle();
......
...@@ -18,7 +18,7 @@ export class LoginComponent implements OnInit { ...@@ -18,7 +18,7 @@ export class LoginComponent implements OnInit {
} }
private openWalletForm: FormGroup; private openWalletForm: FormGroup;
private hasWallet: boolean = false; public hasWallet: boolean = false;
private wallets: [string]; private wallets: [string];
private isDecrypting = false; private isDecrypting = false;
......
...@@ -21,10 +21,10 @@ export class CreateComponent implements OnInit { ...@@ -21,10 +21,10 @@ export class CreateComponent implements OnInit {
this.buildCreateForm(); this.buildCreateForm();
} }
private createWalletForm: FormGroup; public createWalletForm: FormGroup;
private newWallet: WalletCreation; private newWallet: WalletCreation;
private mnemonic: string; private mnemonic: string;
private isCreating: Boolean = false; public isCreating: boolean = false;
ngOnInit() { ngOnInit() {
this.getNewMnemonic(); this.getNewMnemonic();
...@@ -95,11 +95,11 @@ export class CreateComponent implements OnInit { ...@@ -95,11 +95,11 @@ export class CreateComponent implements OnInit {
} }
}; };
private onBackClicked() { public onBackClicked() {
this.router.navigate(["/setup"]); this.router.navigate(["/setup"]);
} }
private onCreateClicked() { public onCreateClicked() {
this.isCreating = true; this.isCreating = true;
if (this.mnemonic) { if (this.mnemonic) {
this.newWallet = new WalletCreation( this.newWallet = new WalletCreation(
......
...@@ -19,10 +19,10 @@ export class RecoverComponent implements OnInit { ...@@ -19,10 +19,10 @@ export class RecoverComponent implements OnInit {
} }
private recoverWalletForm: FormGroup; public recoverWalletForm: FormGroup;
private creationDate: Date; public creationDate: Date;
private walletRecovery: WalletRecovery; private walletRecovery: WalletRecovery;
private isRecovering: Boolean = false; public isRecovering: boolean = false;
private responseMessage: string; private responseMessage: string;
private errorMessage: string; private errorMessage: string;
...@@ -86,11 +86,11 @@ export class RecoverComponent implements OnInit { ...@@ -86,11 +86,11 @@ export class RecoverComponent implements OnInit {
}, },
}; };
private onBackClicked() { public onBackClicked() {
this.router.navigate(["/setup"]); this.router.navigate(["/setup"]);
} }
private onRecoverClicked(){ public onRecoverClicked(){
this.isRecovering = true; this.isRecovering = true;
this.walletRecovery = new WalletRecovery( this.walletRecovery = new WalletRecovery(
this.recoverWalletForm.get("walletName").value, this.recoverWalletForm.get("walletName").value,
......
...@@ -9,15 +9,15 @@ import { Router } from '@angular/router'; ...@@ -9,15 +9,15 @@ import { Router } from '@angular/router';
}) })
export class SetupComponent { export class SetupComponent {
constructor(private router: Router, private location: Location) {} constructor(private router: Router, private location: Location) {}
private onCreateClicked() { public onCreateClicked() {
this.router.navigate(['/setup/create']); this.router.navigate(['/setup/create']);
} }
private onRecoverClicked() { public onRecoverClicked() {
this.router.navigate(['/setup/recover']); this.router.navigate(['/setup/recover']);
} }
private onBackClicked() { public onBackClicked() {
this.router.navigate(['']); this.router.navigate(['']);
} }
} }
...@@ -21,9 +21,9 @@ import { Subscription } from 'rxjs/Subscription'; ...@@ -21,9 +21,9 @@ import { Subscription } from 'rxjs/Subscription';
export class DashboardComponent implements OnInit { export class DashboardComponent implements OnInit {
constructor(private apiService: ApiService, private globalService: GlobalService, private modalService: NgbModal) {} constructor(private apiService: ApiService, private globalService: GlobalService, private modalService: NgbModal) {}
private confirmedBalance: number; public confirmedBalance: number;
private unconfirmedBalance: number; public unconfirmedBalance: number;
private transactions: any; public transactions: any;
private walletBalanceSubscription: Subscription; private walletBalanceSubscription: Subscription;
private walletHistorySubscription: Subscription; private walletHistorySubscription: Subscription;
...@@ -35,15 +35,15 @@ export class DashboardComponent implements OnInit { ...@@ -35,15 +35,15 @@ export class DashboardComponent implements OnInit {
this.cancelSubscriptions(); this.cancelSubscriptions();
}; };
private openSendDialog() { public openSendDialog() {
const modalRef = this.modalService.open(SendComponent); const modalRef = this.modalService.open(SendComponent);
}; };
private openReceiveDialog() { public openReceiveDialog() {
const modalRef = this.modalService.open(ReceiveComponent); const modalRef = this.modalService.open(ReceiveComponent);
}; };
private openTransactionDetailDialog(transaction: any) { public openTransactionDetailDialog(transaction: any) {
const modalRef = this.modalService.open(TransactionDetailsComponent); const modalRef = this.modalService.open(TransactionDetailsComponent);
modalRef.componentInstance.transaction = transaction; modalRef.componentInstance.transaction = transaction;
} }
......
...@@ -20,7 +20,7 @@ import { TransactionDetailsComponent } from '../transaction-details/transaction- ...@@ -20,7 +20,7 @@ import { TransactionDetailsComponent } from '../transaction-details/transaction-
export class HistoryComponent { export class HistoryComponent {
constructor(private apiService: ApiService, private globalService: GlobalService, private modalService: NgbModal) {} constructor(private apiService: ApiService, private globalService: GlobalService, private modalService: NgbModal) {}
private transactions: any; public transactions: any;
private errorMessage: string; private errorMessage: string;
private walletHistorySubscription: Subscription; private walletHistorySubscription: Subscription;
......
...@@ -10,12 +10,12 @@ import {NgbModal, NgbActiveModal} from '@ng-bootstrap/ng-bootstrap'; ...@@ -10,12 +10,12 @@ import {NgbModal, NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';
}) })
export class LogoutConfirmationComponent implements OnInit { export class LogoutConfirmationComponent implements OnInit {
constructor(private activeModal: NgbActiveModal, private router: Router) { } constructor(public activeModal: NgbActiveModal, private router: Router) { }
ngOnInit() { ngOnInit() {
} }
private onLogout() { public onLogout() {
this.activeModal.close(); this.activeModal.close();
this.router.navigate(['/login']); this.router.navigate(['/login']);
} }
......
...@@ -16,15 +16,15 @@ import { NgbModal, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; ...@@ -16,15 +16,15 @@ import { NgbModal, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
export class ReceiveComponent { export class ReceiveComponent {
constructor(private apiService: ApiService, private globalService: GlobalService, public activeModal: NgbActiveModal) {} constructor(private apiService: ApiService, private globalService: GlobalService, public activeModal: NgbActiveModal) {}
private address: any = ""; public address: any = "";
private copied: boolean = false; public copied: boolean = false;
private errorMessage: string; private errorMessage: string;
ngOnInit() { ngOnInit() {
this.getUnusedReceiveAddresses(); this.getUnusedReceiveAddresses();
} }
private onCopiedClick() { public onCopiedClick() {
this.copied = true; this.copied = true;
} }
......
...@@ -14,7 +14,7 @@ export class SendConfirmationComponent implements OnInit { ...@@ -14,7 +14,7 @@ export class SendConfirmationComponent implements OnInit {
@Input() transaction: any; @Input() transaction: any;
constructor(private globalService: GlobalService, public activeModal: NgbActiveModal) { } constructor(private globalService: GlobalService, public activeModal: NgbActiveModal) { }
private showDetails: boolean = false; public showDetails: boolean = false;
private coinUnit: string; private coinUnit: string;
ngOnInit() { ngOnInit() {
......
...@@ -21,12 +21,12 @@ export class SendComponent implements OnInit { ...@@ -21,12 +21,12 @@ export class SendComponent implements OnInit {
this.buildSendForm(); this.buildSendForm();
} }
private sendForm: FormGroup; public sendForm: FormGroup;
private responseMessage: any; private responseMessage: any;
private errorMessage: string; private errorMessage: string;
private coinUnit: string; public coinUnit: string;
private transaction: TransactionBuilding; private transaction: TransactionBuilding;
private isSending: Boolean = false; public isSending: boolean = false;
ngOnInit() { ngOnInit() {
this.coinUnit = this.globalService.getCoinUnit(); this.coinUnit = this.globalService.getCoinUnit();
...@@ -84,7 +84,7 @@ export class SendComponent implements OnInit { ...@@ -84,7 +84,7 @@ export class SendComponent implements OnInit {
} }
}; };
private send() { public send() {
this.isSending = true; this.isSending = true;
this.transaction = new TransactionBuilding( this.transaction = new TransactionBuilding(
......
...@@ -13,8 +13,8 @@ import { GlobalService } from '../../shared/services/global.service'; ...@@ -13,8 +13,8 @@ import { GlobalService } from '../../shared/services/global.service';
export class SidebarComponent implements OnInit { export class SidebarComponent implements OnInit {
constructor(private globalService: GlobalService, private router: Router, private modalService: NgbModal) { } constructor(private globalService: GlobalService, private router: Router, private modalService: NgbModal) { }
private bitcoinActive: Boolean; public bitcoinActive: boolean;
private stratisActive: Boolean; public stratisActive: boolean;
ngOnInit() { ngOnInit() {
if (this.globalService.getCoinName() === "Bitcoin" || this.globalService.getCoinName() === "TestBitcoin") { if (this.globalService.getCoinName() === "Bitcoin" || this.globalService.getCoinName() === "TestBitcoin") {
...@@ -26,7 +26,7 @@ export class SidebarComponent implements OnInit { ...@@ -26,7 +26,7 @@ export class SidebarComponent implements OnInit {
} }
} }
private loadBitcoinWallet() { public loadBitcoinWallet() {
this.bitcoinActive = true; this.bitcoinActive = true;
this.stratisActive = false; this.stratisActive = false;
this.globalService.setCoinName("TestBitcoin"); this.globalService.setCoinName("TestBitcoin");
...@@ -34,7 +34,7 @@ export class SidebarComponent implements OnInit { ...@@ -34,7 +34,7 @@ export class SidebarComponent implements OnInit {
this.router.navigate(['/wallet']); this.router.navigate(['/wallet']);
} }
private loadStratisWallet() { public loadStratisWallet() {
this.bitcoinActive = false; this.bitcoinActive = false;
this.stratisActive = true; this.stratisActive = true;
this.globalService.setCoinName("TestStratis"); this.globalService.setCoinName("TestStratis");
...@@ -42,7 +42,7 @@ export class SidebarComponent implements OnInit { ...@@ -42,7 +42,7 @@ export class SidebarComponent implements OnInit {
this.router.navigate(['/wallet/stratis-wallet']); this.router.navigate(['/wallet/stratis-wallet']);
} }
private logOut() { public logOut() {
const modalRef = this.modalService.open(LogoutConfirmationComponent); const modalRef = this.modalService.open(LogoutConfirmationComponent);
} }
} }
...@@ -15,12 +15,12 @@ import { Subscription } from 'rxjs/Subscription'; ...@@ -15,12 +15,12 @@ import { Subscription } from 'rxjs/Subscription';
export class StatusBarComponent implements OnInit { export class StatusBarComponent implements OnInit {
private generalWalletInfoSubscription: Subscription; private generalWalletInfoSubscription: Subscription;
private lastBlockSyncedHeight: number; public lastBlockSyncedHeight: number;
private chainTip: number; public chainTip: number;
private isChainSynced: boolean; private isChainSynced: boolean;
private connectedNodes: number = 0; public connectedNodes: number = 0;
private percentSyncedNumber: number = 0; private percentSyncedNumber: number = 0;
private percentSynced: string; public percentSynced: string;
constructor(private apiService: ApiService, private globalService: GlobalService) { } constructor(private apiService: ApiService, private globalService: GlobalService) { }
......
...@@ -12,12 +12,12 @@ export class TransactionDetailsComponent implements OnInit { ...@@ -12,12 +12,12 @@ export class TransactionDetailsComponent implements OnInit {
@Input() transaction; @Input() transaction;
constructor(public activeModal: NgbActiveModal) {} constructor(public activeModal: NgbActiveModal) {}
private copied: boolean = false; public copied: boolean = false;
ngOnInit() { ngOnInit() {
} }
private onCopiedClick() { public onCopiedClick() {
this.copied = true; this.copied = true;
} }
......
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