Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #352 from ckhatri/hoverCopy
Browse files Browse the repository at this point in the history
added copy address or copy public key when you hover over that
  • Loading branch information
luciorubeens authored Oct 25, 2017
2 parents 5d6eb83 + b48c527 commit 4bb3370
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ <h2 translate>
<translate>Refresh Account</translate>
</md-tooltip>
</md-button>

<md-button ng-if="ul.selected.virtual" md-no-ink ng-click="ul.sendArk(ul.selected)" aria-label="Share with {{ ul.selected.address }}">
<md-icon md-font-library="material-icons">send</md-icon>
<md-tooltip>
Expand Down Expand Up @@ -486,7 +486,11 @@ <h2 translate>
<span class="delegate-name">{{ab.getContactFromAddress(ul.selected.address).name || ul.selected.username || 'Address'}} {{ul.selected.ledger}}</span>
<br>
<md-button ng-click="ul.copiedToClipboard()" style="text-transform: none;" copy-to-clipboard="{{((!ul.showPublicKey) && ul.selected.address || ul.selected.publicKey)}}">
<md-icon>content_copy</md-icon> {{((!ul.showPublicKey) && ul.selected.address || ul.selected.publicKey)}}
<md-icon>content_copy</md-icon>
<md-tooltip md-direction="top">
<translate>Copy {{((ul.showPublicKey) && 'public key' || 'address')}}</translate>
</md-tooltip>
{{((!ul.showPublicKey) && ul.selected.address || ul.selected.publicKey)}}
</md-button>
<md-icon ng-if="ul.selected.publicKey" aria-label="Address" style="cursor: pointer;outline: none" ng-click="ul.showPublicKey = !ul.showPublicKey" md-font-library="material-icons">
<md-tooltip md-direction="top">
Expand Down

0 comments on commit 4bb3370

Please sign in to comment.