Merge pull request #151 from cubedro/develop

Added track by to ng-repeat to improve speed
This commit is contained in:
Marian OANCΞA 2015-05-27 01:01:10 +03:00
commit a14a1b6e6d
2 changed files with 2 additions and 2 deletions

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

View File

@ -183,7 +183,7 @@ block content
th
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time", ng-click="orderTable(['-stats.uptime'], false)")
tbody(ng-cloak)
tr(ng-repeat='node in nodes | orderBy:predicate', class="{{ node.stats | mainClass : bestBlock }}")
tr(ng-repeat='node in nodes | orderBy:predicate track by node.id', class="{{ node.stats | mainClass : bestBlock }}")
td.td-nodecheck
i(ng-click="node.pinned = !node.pinned", class="{{ node.pinned | nodePinClass }}", data-toggle="tooltip", data-placement="right", data-original-title="Click to {{ node.pinned ? 'un' : '' }}pin")
td.nodeInfo(rel="{{node.id}}")