Merge pull request #34 from cmgustavo/bug/front-end-list-of-transactions

fixed: list of duplicated tx in front-end with angularjs is not allowed
This commit is contained in:
Mario Colque 2014-01-14 04:57:47 -08:00
commit 0697e9c18a
2 changed files with 5 additions and 3 deletions

View File

@ -50,7 +50,7 @@
</tr>
</thead>
<tbody>
<tr data-ng-repeat="transaction in address.transactions">
<tr data-ng-repeat="transaction in address.transactions track by $index">
<td><a href="/#!/tx/{{transaction}}">{{transaction}}</a></td>
<td>--</td>
<td>--</td>

View File

@ -99,10 +99,12 @@
<h2>Transactions <small>Transactions contained within this block</small></h2>
<table class="table table-striped">
<thead>
<th>Hash</th>
<tr>
<th>Hash</th>
</tr>
</thead>
<tbody>
<tr data-ng-repeat="tx in block.tx">
<tr data-ng-repeat="tx in block.tx track by $index">
<td><a href="/#!/tx/{{tx}}">{{tx}}</a></td>
</tr>
</tbody>