if only one recipient, do not summarize in views

This commit is contained in:
Gregg Zigler 2015-07-16 13:31:46 -07:00
commit c18fca0d7a
3 changed files with 26 additions and 24 deletions

View file

@ -16,10 +16,14 @@
<span ng-show="tx.merchant.pr.ca"><i class="fi-lock"></i> {{tx.merchant.domain}}</span>
<span ng-show="!tx.merchant.pr.ca"><i class="fi-unlock"></i> {{tx.merchant.domain}}</span>
</span>
<span ng-if="tx.outputs">
<span ng-if="tx.outputs && tx.outputs.recipientCount>1">
<span>{{tx.outputs.recipientCount}}</span>
<span translate>recipients</span>
</span>
<span ng-if="tx.outputs && tx.outputs.recipientCount==1">
<contact address="{{tx.outputs[0].summary[0].toAddress}}" ng-hide="tx.merchant"> </contact>
{{tx.outputs[0].summary[0].toAddress}}
</span>
<span ng-if="!tx.outputs">
<contact address="{{tx.toAddress}}" ng-hide="tx.merchant"> </contact>
{{tx.toAddress}}