Permalink
Browse files

fix(history): couldn't copy addresses in the transaction table

  • Loading branch information...
1 parent 2f81a5f commit b90d04270e3ff1daef1d592bfa211501db0c4a31 @beregovoy68 beregovoy68 committed Nov 25, 2016
Showing with 9 additions and 7 deletions.
  1. +9 −7 src/index.html
View
@@ -661,8 +661,10 @@ <h2 class="sectionHeader">LATEST TRANSACTIONS</h2>
<tr ng-repeat="tx in history.unconfirmed | orderBy:'timestamp':true | limitTo:10 | transaction track by tx.timestamp" class="wavesTable-txUnc" ng-class="{'wavesTable-txIn': !tx.formatted.isOutgoing, 'wavesTable-txOut': tx.formatted.isOutgoing}">
<td>{{tx.formatted.datetime}}</td>
<td>{{tx.formatted.type}}</td>
- <td>{{tx.formatted.sender}}</td>
- <td>{{tx.formatted.recipient}}</td>
+ <td ng-if="!tx.formatted.isSenderCopiable">{{tx.formatted.sender}}</td>
+ <td ng-if="tx.formatted.isSenderCopiable"><span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard data-clipboard-text="{{tx.formatted.sender}}" title="Copy this address to the clipboard." ngclipboard-success="clipboardOk()">{{tx.formatted.sender}}</span></td>
+ <td ng-if="!tx.formatted.isRecipientCopiable">{{tx.formatted.recipient}}</td>
+ <td ng-if="tx.formatted.isRecipientCopiable"><span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard data-clipboard-text="{{tx.formatted.recipient}}" title="Copy this address to the clipboard." ngclipboard-success="clipboardOk()">{{tx.formatted.recipient}}</span></td>
<td>{{tx.formatted.fee}}</td>
<td>{{tx.formatted.amount}}</td>
</tr>
@@ -671,8 +673,10 @@ <h2 class="sectionHeader">LATEST TRANSACTIONS</h2>
<tr ng-repeat="tx in history.confirmed | orderBy:'timestamp':true | limitTo:10 | transaction track by tx.timestamp" ng-class="{'wavesTable-txIn': !tx.formatted.isOutgoing, 'wavesTable-txOut': tx.formatted.isOutgoing}">
<td>{{tx.formatted.datetime}}</td>
<td>{{tx.formatted.type}}</td>
- <td>{{tx.formatted.sender}}</td>
- <td>{{tx.formatted.recipient}}</td>
+ <td ng-if="!tx.formatted.isSenderCopiable">{{tx.formatted.sender}}</td>
+ <td ng-if="tx.formatted.isSenderCopiable"><span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard data-clipboard-text="{{tx.formatted.sender}}" title="Copy this address to the clipboard." ngclipboard-success="clipboardOk()">{{tx.formatted.sender}}</span></td>
+ <td ng-if="!tx.formatted.isRecipientCopiable">{{tx.formatted.recipient}}</td>
+ <td ng-if="tx.formatted.isRecipientCopiable"><span class="clipSpan" tooltipster tooltip-theme="tooltipster-theme1" ngclipboard data-clipboard-text="{{tx.formatted.recipient}}" title="Copy this address to the clipboard." ngclipboard-success="clipboardOk()">{{tx.formatted.recipient}}</span></td>
<td>{{tx.formatted.fee}}</td>
<td>{{tx.formatted.amount}}</td>
</tr>
@@ -787,15 +791,13 @@ <h2 class="sectionHeader">ASSET CREATION</h2>
<td>GENERATOR</td>
</tr>
</thead>
- <tbody id="latestBlocksUnconfirmed">
+ <tbody id="latestBlocksTable">
<tr class="fade">
<td>{{community.candidate.block}}</td>
<td><i>incoming</i></td>
<td>{{community.candidate.size}}</td>
<td><i>unconfirmed</i></td>
</tr>
- </tbody>
- <tbody id="latestBlocksTable">
<tr class="fade" ng-repeat="block in community.blocks | orderBy:'timestamp':true">
<td>{{block.height}}</td>
<td>{{block.timestamp | formatting}}</td>

0 comments on commit b90d042

Please sign in to comment.