From 0d4fd06bcca6af114afc614af1841567ec6e0437 Mon Sep 17 00:00:00 2001 From: Andy Phillipson Date: Fri, 16 Jun 2017 12:45:11 -0400 Subject: [PATCH] Fix the send search bg, mcc icon coloring, pre-auth header. --- src/js/controllers/bitpayCard.js | 6 +-- src/js/controllers/tab-send.js | 2 +- src/sass/views/bitpayCard.scss | 12 +++++- www/views/bitpayCard.html | 24 ++++------- www/views/includes/cardActivity.html | 63 ++++++++++++++++++++++++++++ 5 files changed, 86 insertions(+), 21 deletions(-) diff --git a/src/js/controllers/bitpayCard.js b/src/js/controllers/bitpayCard.js index 2a1a3c55a..1bb639029 100644 --- a/src/js/controllers/bitpayCard.js +++ b/src/js/controllers/bitpayCard.js @@ -92,10 +92,10 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi return !tx.pending && tx.type.indexOf('93') == -1; }); self.bitpayCardTransactionHistoryConfirming = lodash.filter(txs, function(tx) { - return tx.pending; + return tx.pending && tx.type.indexOf('93') == -1; }); - self.bitpayCardTransactionHistoryPreAuth = lodash.includes(txs, function(tx) { - return tx.type.indexOf('93') > -1; + self.bitpayCardTransactionHistoryPreAuth = lodash.filter(txs, function(tx) { + return tx.pending && tx.type.indexOf('93') > -1; }); lodash.forEach(self.bitpayCardTransactionHistoryConfirming, function(tx) { diff --git a/src/js/controllers/tab-send.js b/src/js/controllers/tab-send.js index 5c2f576ec..ba6577938 100644 --- a/src/js/controllers/tab-send.js +++ b/src/js/controllers/tab-send.js @@ -133,7 +133,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function( }; $scope.searchBlurred = function() { - if ($scope.formData.search == null) { + if ($scope.formData.search == null || $scope.formData.search.length == 0) { $scope.searchFocus = false; } }; diff --git a/src/sass/views/bitpayCard.scss b/src/sass/views/bitpayCard.scss index a1ae39918..d49fc3821 100644 --- a/src/sass/views/bitpayCard.scss +++ b/src/sass/views/bitpayCard.scss @@ -13,6 +13,10 @@ color: #727272; padding: 2px 1rem; background: #f8f8f9; + i { + position: absolute; + padding-left: 5px; + } } .comment { @@ -86,11 +90,15 @@ &.send .svg #-Transaction-icons { } - &.receive .svg #-Transaction-icons { + &.receive .svg #-Transaction-icons, + &.receive .tx-icon .houston { stroke: #09C286; + color: #09C286; } - &.pending .svg #-Transaction-icons { + &.pending .svg #-Transaction-icons, + &.pending .tx-icon .houston { stroke: $v-bitcoin-orange; + color: $v-bitcoin-orange; } } } diff --git a/www/views/bitpayCard.html b/www/views/bitpayCard.html index 25256c3c7..91c85b482 100644 --- a/www/views/bitpayCard.html +++ b/www/views/bitpayCard.html @@ -51,18 +51,6 @@ Your BitPay Card is ready. Add funds to your card to start using your card at stores and ATMs worldwide. -
- Confirming transactions take up to 1 block confirmation to proccess. - Learn More -
-
- Confirming load transactions that are underpaid may require at least six blockchain confirmations to process. - Learn More -
-
- (Pre-Auth Holds transactions) The merchant has initiated a hold to make those funds unavailable until your transaction to them has fully settled. Funds are released within 30 days at the latest in the event the merchant decides not to complete the transaction. - Learn More -