Removes all Coinbase dependencies from amount view

This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-12 09:58:12 -03:00
commit c3131838ef
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 22 additions and 20 deletions

View file

@ -15,6 +15,14 @@ angular.module('copayApp.controllers').controller('buyCoinbaseController', funct
$scope.$on("$ionicView.beforeEnter", function(event, data) {
amount = data.stateParams.amount;
currency = data.stateParams.currency;
console.log('[buyCoinbase.js:17]',amount, currency); //TODO
if (amount < 1) {
popupService.showAlert('Error', 'Amount must be at least 1.00 ' + currency, function() {
$ionicHistory.goBack();
});
return;
}
$scope.network = coinbaseService.getNetwork();
$scope.wallets = profileService.getWallets({