Cleaning up Transaction Component
This commit is contained in:
parent
75e951dcc1
commit
651629bd5d
@ -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>
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user