simplify recipient summary logic so that entire list is expanded with one click
This commit is contained in:
parent
8caffb8632
commit
4867e9983f
5 changed files with 25 additions and 36 deletions
|
|
@ -1,21 +1,23 @@
|
|||
<div class="ng-animate-disabled row collapse line-b" ng-class="text-gray">
|
||||
<li ng-if="output.summary" class="line-b p10 oh" ng-click="expand(output.parent)">
|
||||
<li ng-if="output.parent.isSummarized" class="line-b p10 oh" ng-click="toggleOutputSummary(output)">
|
||||
<span class="text-gray" translate>Recipients</span>:
|
||||
<span class="right enable_text_select">{{output.summary.length}}
|
||||
<span class="right enable_text_select">{{output.parent.length}}
|
||||
<i class="icon-arrow-down size-24"></i>
|
||||
</span>
|
||||
</li>
|
||||
<li ng-if="!output.summary" class="line-b p10 oh" ng-click="copyAddress(output.toAddress)">
|
||||
<li ng-if="!output.parent.isSummarized" class="line-b p10 oh" ng-click="toggleOutputSummary(output)">
|
||||
<span class="text-gray" translate>To</span>:
|
||||
<span class="right enable_text_select">{{output.toAddress}}</span>
|
||||
<span class="right enable_text_select">{{output.toAddress}}
|
||||
<i class="icon-arrow-up size-24"></i>
|
||||
</span>
|
||||
</li>
|
||||
<li class="line-b p10" ng-click="expand(output.parent)">
|
||||
<li class="line-b p10" ng-click="toggleOutputSummary(output)">
|
||||
<span class="text-gray" translate>Amount</span>:
|
||||
<span class="right">{{output.amountStr}}
|
||||
<span class="label gray radius enable_text_select">{{output.alternativeAmountStr}}</span>
|
||||
</span>
|
||||
</li>
|
||||
<li class="line-b p10 oh" ng-click="expand(output.parent)">
|
||||
<li class="line-b p10 oh" ng-click="toggleOutputSummary(output)">
|
||||
<span class="text-gray" translate>Note</span>:
|
||||
<span class="right enable_text_select">{{output.message}}</span>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<div class="ellipsis size-14">
|
||||
<span ng-if="tx.outputs">
|
||||
<span translate>Recipients</span>:
|
||||
<span>{{tx.outputs.recipientCount}}</span>
|
||||
<span>{{tx.outputs.length}}</span>
|
||||
</span>
|
||||
<span ng-if="!tx.outputs">
|
||||
<span translate>To</span>:
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
<h4 class="title m0" translate>Details</h4>
|
||||
<ul class="no-bullet size-14 m0">
|
||||
<div ng-if="tx.outputs"
|
||||
ng-repeat="output in tx.outputs"
|
||||
ng-repeat="output in tx.outputs.list"
|
||||
ng-include="'views/includes/output.html'">
|
||||
</div>
|
||||
<li ng-if="!tx.outputs" class="line-b p10 oh" ng-click="copyAddress(tx.toAddress)">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue