Cleaning up Transaction Component

This commit is contained in:
Ash Bhimasani 2018-06-08 10:29:30 -04:00
parent 75e951dcc1
commit 651629bd5d
2 changed files with 4 additions and 15 deletions

View File

@ -68,7 +68,7 @@
</ion-col> </ion-col>
<ion-col col-12 col-md-1 text-center> <ion-col col-12 col-md-1 text-center>
<ion-icon name="arrow-forward" class="shiftDown"></ion-icon> <ion-icon name="arrow-forward"></ion-icon>
</ion-col> </ion-col>
<ion-col col-12 col-md-6> <ion-col col-12 col-md-6>

View File

@ -40,22 +40,11 @@ export class TransactionComponent {
} }
public goToOutpoint(txId: string, txDirection: string, txIndex: number): void { public goToOutpoint(txId: string, txDirection: string, txIndex: number): void {
// output page this.navCtrl.push('outpoint', {
if (txDirection === '>') {
this.navCtrl.push('outpoint', {
'txId': txId, 'txId': txId,
'txDirection': '>', 'txDirection': txDirection,
'txIndex': txIndex 'txIndex': txIndex
}); });
}
// input page
if (txDirection === '<') {
this.navCtrl.push('outpoint', {
'txId': txId,
'txDirection': '<',
'txIndex': txIndex
});
}
} }
public goToAddress(addrStr: string): void { public goToAddress(addrStr: string): void {