mirror of https://github.com/BTCPrivate/copay.git
Show only entry I want. Hidden anywhere.
This commit is contained in:
parent
c83e0c73da
commit
2ad4aee2d6
|
@ -640,4 +640,11 @@ ul.pagination li.current a:hover, ul.pagination li.current a:focus {
|
|||
display: block;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.addressbook-disabled td {
|
||||
color: #ccc;
|
||||
text-decoration: line-through;
|
||||
}
|
||||
.addressbook-disabled a {
|
||||
color: #7A9FB6;
|
||||
}
|
||||
|
||||
|
|
10
index.html
10
index.html
|
@ -742,7 +742,7 @@
|
|||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="medium-8 medium-centered large-8 large-centered columns">
|
||||
<div class="medium-9 medium-centered large-9 large-centered columns">
|
||||
<hr>
|
||||
<h3>Address Book</h3>
|
||||
<p class="text-gray" ng-hide="showAddressBook()">Empty. Create an alias for your addresses</p>
|
||||
|
@ -753,18 +753,18 @@
|
|||
<th>Address</td>
|
||||
<th>Creator</td>
|
||||
<th>Date</td>
|
||||
<th>Signature</td>
|
||||
<th>Hidden</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="(addr, info) in $root.wallet.addressBook track by $index" ng-if="info.copayerId != -1">
|
||||
<tr
|
||||
ng-repeat="(addr, info) in $root.wallet.addressBook track by $index"
|
||||
ng-if="info.copayerId != -1"
|
||||
ng-class="{'addressbook-disabled': info.hidden}">
|
||||
<td><a ng-click="copyAddress(addr)" title="Copy address">{{info.label}}</a></td>
|
||||
<td>{{addr}}</td>
|
||||
<td>{{$root.wallet.publicKeyRing.nicknameForCopayer(info.copayerId)}}</td>
|
||||
<td><time>{{info.createdTs | amCalendar}}</time></td>
|
||||
<td
|
||||
ng-init="checkSignAddressBook(addr)">{{signAddressBook[addr]}}</td>
|
||||
<td><a ng-click="toggleAddressBookEntry(addr)">{{info.hidden}}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -129,7 +129,7 @@ angular.module('copayApp.directives')
|
|||
|
||||
var address = attrs.address;
|
||||
var contact = scope.wallet.addressBook[address];
|
||||
if (contact) {
|
||||
if (contact && !contact.hidden) {
|
||||
element.append(contact.label);
|
||||
attrs['tooltip'] = attrs.address;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue