Fix mobile response

This commit is contained in:
Gustavo Maximiliano Cortez 2016-05-19 20:20:06 -03:00
parent b0d24c6814
commit a63a8e4aaa
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
2 changed files with 11 additions and 0 deletions

View File

@ -15,6 +15,9 @@ angular.module('copayApp.controllers').controller('amazonController',
return;
}
self.giftCards = gcds;
$timeout(function() {
$scope.$digest();
});
});
};
@ -69,6 +72,9 @@ angular.module('copayApp.controllers').controller('amazonController',
return;
}
$scope.card = data;
$timeout(function() {
$scope.$digest();
});
});
};

View File

@ -49,6 +49,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
};
$scope.openWalletsModal = function(wallets) {
if (self.loading) return;
self.error = null;
self.errorInfo = null;
var ModalInstanceCtrl = function($scope, $modalInstance) {
@ -94,6 +95,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
};
this.setAmount = function(plus) {
if (self.loading) return;
if (plus && $scope.fiat < maximumAmount ) {
stepAmount = stepAmount + 1;
$scope.fiat = stepAmount * multiplierAmount;
@ -184,6 +186,9 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
return;
}
self.giftCard = giftCard;
$timeout(function() {
$scope.$digest();
});
});
});
}