mirror of https://github.com/BTCPrivate/copay.git
Fix first view
This commit is contained in:
parent
6d97ef57d5
commit
4f5c814c50
|
@ -94,6 +94,7 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
|
||||||
transactions: self.bitpayCardTransactionHistory
|
transactions: self.bitpayCardTransactionHistory
|
||||||
};
|
};
|
||||||
bitpayCardService.setCacheData(cacheData, function(err) {
|
bitpayCardService.setCacheData(cacheData, function(err) {
|
||||||
|
$scope.bitpayCardCached = true;
|
||||||
if (err) $log.error(err);
|
if (err) $log.error(err);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,8 +4,8 @@ angular.module('copayApp.controllers').controller('preferencesBitpayCardControll
|
||||||
function($scope, $state, $timeout, $ionicHistory, bitpayCardService, popupService) {
|
function($scope, $state, $timeout, $ionicHistory, bitpayCardService, popupService) {
|
||||||
|
|
||||||
$scope.logout = function() {
|
$scope.logout = function() {
|
||||||
var title = 'Are you sure you would like to log out of your Bitpay Card account?';
|
var msg = 'Are you sure you would like to log out of your BitPay Card account?';
|
||||||
popupService.showConfirm(title, null, null, null, function(res) {
|
popupService.showConfirm(null, msg, null, null, function(res) {
|
||||||
if (res) logout();
|
if (res) logout();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 2rem 1rem 1.5rem 1rem;
|
padding: 2rem 1rem 1.5rem 1rem;
|
||||||
min-height: 140px;
|
height: 140px;
|
||||||
border-color: #172565;
|
border-color: #172565;
|
||||||
background-color: #1e3186;
|
background-color: #1e3186;
|
||||||
background-image: linear-gradient(0deg, #172565, #172565 0%, transparent 0%);
|
background-image: linear-gradient(0deg, #172565, #172565 0%, transparent 0%);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
.wallet-details-wallet-info {
|
||||||
|
bottom: 5px;
|
||||||
|
}
|
||||||
strong {
|
strong {
|
||||||
line-height: 100%;
|
line-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,28 +92,30 @@
|
||||||
<div ng-show="bitpayCard.bitpayCardAuthenticated">
|
<div ng-show="bitpayCard.bitpayCardAuthenticated">
|
||||||
<div class="oh pr">
|
<div class="oh pr">
|
||||||
<div class="amount">
|
<div class="amount">
|
||||||
<div ng-if="!loadingHistory && bitpayCard.bitpayCardCurrentBalance" ng-click="bitpayCard.update()">
|
<div ng-if="bitpayCard.bitpayCardCurrentBalance" ng-click="bitpayCard.update()">
|
||||||
<div class="size-36 m20b">${{bitpayCard.bitpayCardCurrentBalance}}</div>
|
<div class="size-36 m20b">${{bitpayCard.bitpayCardCurrentBalance}}</div>
|
||||||
<a class="button button-positive button-small" ui-sref="tabs.bitpayCard.amount({'isCard': true, 'toName': 'BitPay Card'})">
|
<a class="button button-positive button-small" ui-sref="tabs.bitpayCard.amount({'isCard': true, 'toName': 'BitPay Card'})">
|
||||||
<i class="icon ion-ios-plus-empty"></i> {{'Add Funds'|translate}}
|
<i class="icon ion-ios-plus-empty"></i> {{'Add Funds'|translate}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div ng-if="loadingHistory" class="m10t">
|
<div ng-if="!bitpayCard.bitpayCardCurrentBalance" class="m10t">
|
||||||
<strong class="size-36">...</strong>
|
<strong class="size-36">...</strong>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="wallet-details-wallet-info">
|
||||||
|
<img style="height:0.6em" ng-show="loadingHistory" src="img/icon-sync-white.svg">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="m10t text-center padding"
|
class="m10t text-center padding"
|
||||||
ng-show="!bitpayCard.bitpayCardTransactionHistory[0] &&
|
ng-if="!bitpayCardCached && !loadingHistory && !bitpayCard.bitpayCardTransactionHistory[0]">
|
||||||
!bitpayCard.bitpayCardInvoiceHistory[0] && (!loadingHistory || !bitpayCardCached)">
|
|
||||||
<i class="icon ion-ios-arrow-thin-up size-24"></i>
|
<i class="icon ion-ios-arrow-thin-up size-24"></i>
|
||||||
<h1>Get started</h1>
|
<h1>Get started</h1>
|
||||||
<h4>Your BitPay Card is ready. Add funds to your card to start using your card at stores and ATMs worldwide.</h4>
|
<h4>Your BitPay Card is ready. Add funds to your card to start using your card at stores and ATMs worldwide.</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="list" ng-if="bitpayCardCached">
|
<div class="list" ng-show="bitpayCardCached">
|
||||||
<div class="item item-divider">
|
<div class="item item-divider">
|
||||||
<select class="select-style" ng-model="dateRange" ng-change="bitpayCard.update(dateRange)">
|
<select class="select-style" ng-model="dateRange" ng-change="bitpayCard.update(dateRange)">
|
||||||
<option value="last30Days">Recent Activity</option>
|
<option value="last30Days">Recent Activity</option>
|
||||||
|
|
Loading…
Reference in New Issue