Merge pull request #435 from cmgustavo/bug/speed-up-address

Load the list of transactions until the Addr/Block Info are loaded
This commit is contained in:
Matias Alejo Garcia 2014-03-31 15:32:59 -03:00
commit e3ac30bb18
3 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@
angular.module('insight.address').factory('Address',
function($resource) {
return $resource('/api/addr/:addrStr', {
return $resource('/api/addr/:addrStr/?noTxList=1', {
addrStr: '@addStr'
}, {
get: {

View File

@ -72,8 +72,8 @@
</table>
</div>
</div>
<h2>Transactions</h2>
<div data-ng-controller="transactionsController" data-ng-init="load('address')">
<div data-ng-if="address.addrStr" data-ng-controller="transactionsController" data-ng-init="load('address')">
<h2>Transactions</h2>
<div data-ng-include src="'/views/transaction/list.html'" when-scrolled="loadMore()"></div>
</div>
</section>

View File

@ -119,8 +119,7 @@
</div>
</div>
</div>
<div data-ng-controller="transactionsController" data-ng-init="load('block')">
<div data-ng-if="block.hash" data-ng-controller="transactionsController" data-ng-init="load('block')">
<h3>Transactions</h3>
<div data-ng-include src="'/views/transaction/list.html'" when-scrolled="loadMore()"></div>
</div>