mirror of https://github.com/BTCPrivate/copay.git
fix address book
This commit is contained in:
parent
4c0db8942f
commit
30fe89bd21
|
@ -535,6 +535,13 @@ a.button-setup {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
color: #A0A3A6;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
a.button-setup:hover {
|
||||||
|
color: #666;
|
||||||
|
border-color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
.createProfile a.button-setup, .home a.button-setup, .settings a.button-setup, .import-profile a.button-setup {
|
.createProfile a.button-setup, .home a.button-setup, .settings a.button-setup, .import-profile a.button-setup {
|
||||||
|
@ -938,28 +945,20 @@ label small.has-error {
|
||||||
}
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse; text-align: left; width: 100%; border: none;
|
border-collapse: collapse;
|
||||||
box-shadow: -2px 1px 9px 1px #DDDDDD;
|
text-align: left;
|
||||||
-webkit-box-shadow: -2px 1px 5px 1px #DDDDDD;
|
width: 100%;
|
||||||
-moz-box-shadow: -2px 1px 5px 1px #DDDDDD;
|
border: none;
|
||||||
-o-box-shadow: -2px 1px 5px 1px #DDDDDD;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
thead tr{
|
thead tr{
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
border-top: 1px solid #FFFFFF;
|
|
||||||
height: 46px
|
|
||||||
}
|
}
|
||||||
|
|
||||||
table tr td, table tr th {
|
table tr td, table tr th {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.last-transactions-content tr td,
|
|
||||||
table.last-transactions-content tr th {
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
table tfoot tr td, table tfoot tr th, table thead tr td, table thead tr th {
|
table tfoot tr td, table tfoot tr th, table thead tr td, table thead tr th {
|
||||||
background-color: #F5F5F8;
|
background-color: #F5F5F8;
|
||||||
color:#949BAD;
|
color:#949BAD;
|
||||||
|
@ -975,7 +974,7 @@ table tbody tr:last-child td {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.manage-wallets tr:hover {
|
table tr:hover {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
@ -1368,7 +1367,7 @@ a:hover .photo-container {
|
||||||
.copay-box {
|
.copay-box {
|
||||||
width: 70px;
|
width: 70px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-right: 20px;
|
margin-right: 10px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1446,8 +1445,6 @@ a.text-warning:hover {color: #FD7262;}
|
||||||
|
|
||||||
.box-setup-copayers {
|
.box-setup-copayers {
|
||||||
background: #F8F8FB;
|
background: #F8F8FB;
|
||||||
-moz-box-shadow: inset 0px 0px 5px 0px rgba(0,0,0,0.20);
|
|
||||||
box-shadow: inset 0px 0px 5px 0px rgba(0,0,0,0.20);
|
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1479,9 +1476,6 @@ a.text-warning:hover {color: #FD7262;}
|
||||||
.panel {
|
.panel {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
-moz-box-shadow: 1.5px 1.5px 0px 0px rgba(32,48,64,0.20);
|
|
||||||
box-shadow: 1.5px 1.5px 0px 0px rgba(32,48,64,0.20);
|
|
||||||
-o-box-shadow: 1.5px 1.5px 0px 0px rgba(32,48,64,0.20);
|
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1510,19 +1504,6 @@ a.text-warning:hover {color: #FD7262;}
|
||||||
dialog.large, .reveal-modal.large {
|
dialog.large, .reveal-modal.large {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 1.25rem 0.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
dialog.large span.address-size, .reveal-modal.large span.address-size {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
dialog.large table, .reveal-modal.large table {
|
|
||||||
margin: 0;
|
|
||||||
box-shadow: none;
|
|
||||||
-webkit-box-shadow: none;
|
|
||||||
-moz-box-shadow: none;
|
|
||||||
-o-box-shadow: none;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1674,15 +1655,6 @@ a.text-warning:hover {color: #FD7262;}
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.addressbook-entry td {
|
|
||||||
display: block;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.addressbook-disabled td, .addressbook-disabled td a {
|
|
||||||
color: #8597A7;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*/////////////////////////////////////////////////*/
|
/*/////////////////////////////////////////////////*/
|
||||||
|
|
||||||
.createProfile .icon-input {
|
.createProfile .icon-input {
|
||||||
|
|
|
@ -468,7 +468,7 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
$modalInstance.close(addr);
|
$modalInstance.close(addr);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.cancel = function() {
|
$scope.cancel = function(form) {
|
||||||
$scope.error = $scope.success = null;
|
$scope.error = $scope.success = null;
|
||||||
$scope.toggleForm();
|
$scope.toggleForm();
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<div>
|
<a class="close-reveal-modal" ng-click="close()">×</a>
|
||||||
<h1 ng-show="!showForm">Address Book
|
<div class="row m10t">
|
||||||
<small><a class="text-success" href ng-click="toggleForm()"><i class="fi-plus"></i> Add entry</a></small>
|
<div class="large-12 columns">
|
||||||
</h1>
|
<h1 ng-show="!showForm">Address Book</h1>
|
||||||
<h1 ng-show="showForm">Add a new entry</h1>
|
<h1 ng-show="showForm">Add a new entry</h1>
|
||||||
<p translate class="text-gray m15b" ng-show="!showForm && !hasEntry()">Empty. Create an alias for your addresses</p>
|
<p translate class="text-gray m15b" ng-show="!showForm && !hasEntry()">Empty. Create an alias for your addresses</p>
|
||||||
<div class="box-notification" ng-show="success">
|
<div class="box-notification" ng-show="success">
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
{{success}}
|
{{success}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<table class="addressbook" ng-show="!showForm && hasEntry()">
|
<table class="addressbook line-t" ng-show="!showForm && hasEntry()">
|
||||||
<thead class="show-for-large-up">
|
<thead class="show-for-large-up">
|
||||||
<tr>
|
<tr>
|
||||||
<th translate>Entry</th>
|
<th translate>Entry</th>
|
||||||
|
@ -23,14 +23,11 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr
|
<tr
|
||||||
class="addressbook-entry"
|
|
||||||
ng-repeat="(addr, info) in addressBook"
|
ng-repeat="(addr, info) in addressBook"
|
||||||
ng-class="{'addressbook-disabled': info.hidden}">
|
ng-class="{'addressbook-disabled': info.hidden}">
|
||||||
<td ng-click="copyToSend(addr)">
|
<td ng-click="copyToSend(addr)">
|
||||||
<dl>
|
<b>{{info.label}}</b><br>
|
||||||
<dt><b>{{info.label}}</b></dt>
|
<span class="address-size">{{::addr}}</span>
|
||||||
<dd><span class="address-size">{{::addr}}</span></dd>
|
|
||||||
</dl>
|
|
||||||
</td>
|
</td>
|
||||||
<td ng-click="copyToSend(addr)" ng-show="$root.wallet.isShared()" ng-class="{'hide-for-small-only' : $root.wallet.isShared()}">{{$root.wallet.publicKeyRing.nicknameForCopayer(info.copayerId)}}</td>
|
<td ng-click="copyToSend(addr)" ng-show="$root.wallet.isShared()" ng-class="{'hide-for-small-only' : $root.wallet.isShared()}">{{$root.wallet.publicKeyRing.nicknameForCopayer(info.copayerId)}}</td>
|
||||||
<td ng-click="copyToSend(addr)" class="show-for-large-up"><time>{{::info.createdTs | amCalendar}}</time></td>
|
<td ng-click="copyToSend(addr)" class="show-for-large-up"><time>{{::info.createdTs | amCalendar}}</time></td>
|
||||||
|
@ -79,12 +76,15 @@
|
||||||
<i class="icon-pricetag"></i>
|
<i class="icon-pricetag"></i>
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
<a translate class="m0 button secondary small default" ng-click="cancel()">Back</a>
|
<a translate class="m0 button secondary small default" ng-click="cancel(addressBookForm)">Back</a>
|
||||||
<input type="submit" class="m0 button small primary right"
|
<input type="submit" class="m0 button small primary right"
|
||||||
ng-disabled="addressBookForm.$invalid || loading"
|
ng-disabled="addressBookForm.$invalid || loading"
|
||||||
value="{{'Add'|translate}}">
|
value="{{'Add'|translate}}">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="close-reveal-modal" ng-click="close()">×</a>
|
</div>
|
||||||
|
<div class="large-12 columns" ng-show="!showForm">
|
||||||
|
<a class="button primary expand" ng-click="toggleForm()"><i class="fi-plus"></i> Add entry</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<div class="text-center">
|
<div class="text-right">
|
||||||
|
<a class="close-reveal-modal" ng-click="cancel()">Close</a>
|
||||||
|
</div>
|
||||||
|
<div class="text-center m20t">
|
||||||
<qrcode size="220" data="{{address.address}}"></qrcode>
|
<qrcode size="220" data="{{address.address}}"></qrcode>
|
||||||
|
|
||||||
<div class="m10t" ng-init="label = $root.wallet.addressBook[address.address].label">
|
<div class="m10t" ng-init="label = $root.wallet.addressBook[address.address].label">
|
||||||
|
@ -10,4 +13,3 @@
|
||||||
</b>
|
</b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a class="close-reveal-modal" ng-click="cancel()">×</a>
|
|
||||||
|
|
Loading…
Reference in New Issue