From 2ad4aee2d627c12064973e368ef744e6561c77dd Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Mon, 7 Jul 2014 02:21:29 -0300 Subject: [PATCH] Show only entry I want. Hidden anywhere. --- css/main.css | 7 +++++++ index.html | 10 +++++----- js/directives.js | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/css/main.css b/css/main.css index 2aeac8172..ef96e3dc6 100644 --- a/css/main.css +++ b/css/main.css @@ -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; +} diff --git a/index.html b/index.html index 6455f73b7..8d0085f87 100644 --- a/index.html +++ b/index.html @@ -742,7 +742,7 @@ -
+

Address Book

Empty. Create an alias for your addresses

@@ -753,18 +753,18 @@ Address Creator Date - Signature Hidden - + {{info.label}} {{addr}} {{$root.wallet.publicKeyRing.nicknameForCopayer(info.copayerId)}} - {{signAddressBook[addr]}} {{info.hidden}} diff --git a/js/directives.js b/js/directives.js index 6ee8e901b..62a8d0387 100644 --- a/js/directives.js +++ b/js/directives.js @@ -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 {