Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
Adjust send component
Browse files Browse the repository at this point in the history
  • Loading branch information
dev0tion committed Dec 20, 2018
1 parent 2d2e68a commit 13417e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StratisCore.UI/src/app/wallet/send/send.component.html
Expand Up @@ -12,7 +12,7 @@ <h5 class="modal-title">Send to</h5>
<div class="form-group clearfix mb-0">
<div>
<ngb-tabset type="pills" class="nav-fill">
<ngb-tab class="nav-link blue" title="Mainchain">
<ngb-tab class="nav-link blue" title="{{ firstTitle }}">
<ng-template ngbTabContent>
<form [formGroup]="sendForm">
<!--<div class="form-group has-danger clearfix">-->
Expand Down Expand Up @@ -80,7 +80,7 @@ <h5 class="modal-title">Send to</h5>
</div>
</ng-template>
</ngb-tab>
<ngb-tab id="purple-bg" class="nav-link purple" title="Sidechain">
<ngb-tab id="purple-bg" class="nav-link purple" title="{{ secondTitle }}">
<ng-template ngbTabContent>
<form [formGroup]="sendToSidechainForm">
<!--<div class="form-group has-danger clearfix">-->
Expand Down
11 changes: 11 additions & 0 deletions StratisCore.UI/src/app/wallet/send/send.component.ts
Expand Up @@ -34,18 +34,29 @@ export class SendComponent implements OnInit, OnDestroy {

public sendForm: FormGroup;
public sendToSidechainForm: FormGroup;
public sidechainEnabled: boolean;
public coinUnit: string;
public isSending: boolean = false;
public estimatedFee: number = 0;
public estimatedSidechainFee: number = 0;
public totalBalance: number = 0;
public apiError: string;
public firstTitle: string;
public secondTitle: string;
private transactionHex: string;
private responseMessage: any;
private transaction: TransactionBuilding;
private walletBalanceSubscription: Subscription;

ngOnInit() {
this.sidechainEnabled = this.globalService.getSidechainEnabled();
if (this.sidechainEnabled) {
this.firstTitle = "Sidechain";
this.secondTitle = "Mainchain";
} else {
this.firstTitle = "Mainchain";
this.secondTitle = "Sidechain";
}
this.startSubscriptions();
this.coinUnit = this.globalService.getCoinUnit();
if (this.address) {
Expand Down

0 comments on commit 13417e6

Please sign in to comment.