Commit 41cc4367 authored by dev0tion's avatar dev0tion

Fix production build

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