Merge pull request #584 from cmgustavo/bug/window-size-tx-history

Bug/window size tx history
This commit is contained in:
Matias Alejo Garcia 2016-10-19 10:26:10 -03:00 committed by GitHub
commit aec012ea46
7 changed files with 25 additions and 17 deletions

View file

@ -23,6 +23,9 @@
"frame": true, "frame": true,
"width": 400, "width": 400,
"height": 650, "height": 650,
"min_width": 400,
"max_width": 800,
"min_height": 650,
"position": "center", "position": "center",
"fullscreen": false "fullscreen": false
}, },

View file

@ -139,7 +139,6 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
$scope.wallets = profileService.getWallets({ $scope.wallets = profileService.getWallets({
network: $scope.network, network: $scope.network,
n: 1,
onlyComplete: true onlyComplete: true
}); });
}); });

View file

@ -113,10 +113,13 @@ angular.module('copayApp.directives')
} }
} }
}) })
.directive('contact', ['addressbookService', 'lodash', .directive('contact', ['addressbookService', 'lodash', 'gettextCatalog',
function(addressbookService, lodash) { function(addressbookService, lodash, gettextCatalog) {
return { return {
restrict: 'E', restrict: 'E',
scope: {
label: '='
},
link: function(scope, element, attrs) { link: function(scope, element, attrs) {
var addr = attrs.address; var addr = attrs.address;
addressbookService.get(addr, function(err, ab) { addressbookService.get(addr, function(err, ab) {
@ -124,7 +127,11 @@ angular.module('copayApp.directives')
var name = lodash.isObject(ab) ? ab.name : ab; var name = lodash.isObject(ab) ? ab.name : ab;
element.append(name); element.append(name);
} else { } else {
element.append(addr); if (scope.label && scope.label == 'Sent') {
element.append(gettextCatalog.getString('Sent'));
} else {
element.append(addr);
}
} }
}); });
} }

View file

@ -33,7 +33,7 @@
ng-submit="buy.confirm()" ng-submit="buy.confirm()"
novalidate> novalidate>
<div class="list"> <div class="list card">
<label class="item item-input item-stacked-label"> <label class="item item-input item-stacked-label">
<span class="input-label">Amount</span> <span class="input-label">Amount</span>
<input type="number" <input type="number"

View file

@ -32,7 +32,7 @@
<form name="buyPriceForm" ng-if="token" <form name="buyPriceForm" ng-if="token"
ng-submit="buy.get2faCode(token)" novalidate> ng-submit="buy.get2faCode(token)" novalidate>
<div class="list"> <div class="list card">
<label class="item item-input item-stacked-label"> <label class="item item-input item-stacked-label">
<span class="input-label">Amount in {{showAlternative ? 'USD' : 'BTC'}}</span> <span class="input-label">Amount in {{showAlternative ? 'USD' : 'BTC'}}</span>
<input ng-show="!showAlternative" <input ng-show="!showAlternative"
@ -66,7 +66,7 @@
<wallets ng-if="wallets[0]" wallets="wallets"></wallets> <wallets ng-if="wallets[0]" wallets="wallets"></wallets>
<div class="text-center text-gray size-12 m20b" ng-show="!buy.gettingBuyPrice && buy.buyPrice.qty"> <div class="text-center text-gray size-12 m20v" ng-show="!buy.gettingBuyPrice && buy.buyPrice.qty">
Buy Buy
<span ng-show="qty">{{buy.buyPrice.subtotal|currency:'':2}} {{buy.buyPrice.currency}} in Bitcoin</span> <span ng-show="qty">{{buy.buyPrice.subtotal|currency:'':2}} {{buy.buyPrice.currency}} in Bitcoin</span>
<span ng-show="fiat">{{buy.buyPrice.qty}} BTC</span> <span ng-show="fiat">{{buy.buyPrice.qty}} BTC</span>
@ -96,7 +96,7 @@
</p> </p>
<form name="buyForm" <form name="buyForm"
ng-submit="buy.sendRequest(token, permissions, twoFaCode)" novalidate> ng-submit="buy.sendRequest(token, permissions, twoFaCode)" novalidate>
<div class="list"> <div class="list card">
<label class="item item-input"> <label class="item item-input">
<input type="number" ng-model="twoFaCode" placeholder="2FA Code" required ignore-mouse-wheel> <input type="number" ng-model="twoFaCode" placeholder="2FA Code" required ignore-mouse-wheel>
</label> </label>
@ -106,12 +106,12 @@
Buy Buy
</button> </button>
</form> </form>
<p class="m10t size-12 text-gray"> <p class="m10t size-12 text-gray padding">
Fiat will be immediately withdrawn from your bank account. The bitcoins will be purchased and deposited to your wallet in 2-4 business days. Fiat will be immediately withdrawn from your bank account. The bitcoins will be purchased and deposited to your wallet in 2-4 business days.
</p> </p>
</div> </div>
</div> </div>
<div class="text-center" ng-show="buy.success"> <div class="text-center padding" ng-show="buy.success">
<h1>Purchase initiated</h1> <h1>Purchase initiated</h1>
<p class="text-gray"> <p class="text-gray">
A transfer has been initiated from your bank account. Your bitcoins should arrive to your wallet in 2-4 business days. A transfer has been initiated from your bank account. Your bitcoins should arrive to your wallet in 2-4 business days.

View file

@ -31,7 +31,7 @@
<form name="sellPriceForm" ng-if="token" <form name="sellPriceForm" ng-if="token"
ng-submit="sell.get2faCode(token)" novalidate> ng-submit="sell.get2faCode(token)" novalidate>
<div class="list"> <div class="list card">
<label class="item item-input item-stacked-label"> <label class="item item-input item-stacked-label">
<span class="input-label"><span>Amount in</span> {{showAlternative ? 'USD' : 'BTC'}}</span> <span class="input-label"><span>Amount in</span> {{showAlternative ? 'USD' : 'BTC'}}</span>
<input ng-show="!showAlternative" <input ng-show="!showAlternative"
@ -65,7 +65,7 @@
<wallets ng-if="wallets[0]" wallets="wallets"></wallets> <wallets ng-if="wallets[0]" wallets="wallets"></wallets>
<div class="text-center text-gray size-12 m20b" ng-show="!sell.gettingSellPrice && sell.sellPrice.qty"> <div class="text-center text-gray size-12 m20v" ng-show="!sell.gettingSellPrice && sell.sellPrice.qty">
Sell Sell
<span ng-show="qty">{{sell.sellPrice.subtotal|currency:'':2}} {{sell.sellPrice.currency}} in Bitcoin</span> <span ng-show="qty">{{sell.sellPrice.subtotal|currency:'':2}} {{sell.sellPrice.currency}} in Bitcoin</span>
<span ng-show="fiat">{{sell.sellPrice.qty}} BTC</span> <span ng-show="fiat">{{sell.sellPrice.qty}} BTC</span>
@ -96,7 +96,7 @@
</p> </p>
<form name="sellForm" <form name="sellForm"
ng-submit="sell.createTx(token, permissions, twoFaCode)" novalidate> ng-submit="sell.createTx(token, permissions, twoFaCode)" novalidate>
<div class="list"> <div class="list card">
<label class="item item-input"> <label class="item item-input">
<input type="number" ng-model="twoFaCode" placeholder="2FA Code" required ignore-mouse-wheel> <input type="number" ng-model="twoFaCode" placeholder="2FA Code" required ignore-mouse-wheel>
</label> </label>
@ -107,12 +107,12 @@
Sell Sell
</button> </button>
</form> </form>
<p class="m10t size-12 text-gray"> <p class="m10t size-12 text-gray padding">
Bitcoins will be immediately sent from your wallet to Glidera. Fiat will be deposited in your bank account in 4-6 business days. Bitcoins will be immediately sent from your wallet to Glidera. Fiat will be deposited in your bank account in 4-6 business days.
</p> </p>
</div> </div>
</div> </div>
<div class="text-center" ng-show="sell.success"> <div class="text-center padding" ng-show="sell.success">
<h1>Sale initiated</h1> <h1>Sale initiated</h1>
<p class="text-gray"> <p class="text-gray">
A transfer has been initiated to your bank account and should arrive in 4-6 business days. A transfer has been initiated to your bank account and should arrive in 4-6 business days.

View file

@ -161,8 +161,7 @@
<span class="ellipsis"> <span class="ellipsis">
<div ng-if="btx.message">{{btx.message}}</div> <div ng-if="btx.message">{{btx.message}}</div>
<div ng-if="!btx.message && btx.note.body">{{btx.note.body}}</div> <div ng-if="!btx.message && btx.note.body">{{btx.note.body}}</div>
<div ng-if="!btx.message && !btx.note.body && wallet.addressbook[btx.addressTo]">{{wallet.addressbook[btx.addressTo]}}</div> <contact ng-if="!btx.message && !btx.note.body" class="ellipsis" address="{{btx.addressTo}}" label="'Sent'"></contact>
<div ng-if="!btx.message && !btx.note.body && !wallet.addressbook[btx.addressTo]" translate> Sent</div>
</span> </span>
</div> </div>