Fix modals and choose focused wallet in sell page

This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-05 15:04:07 -03:00
commit 3e8a3976eb
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 68 additions and 6 deletions

View file

@ -22,6 +22,7 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
self.selectedWalletName = null;
self.selectedWalletAddr = null;
var ModalInstanceCtrl = function($scope, $modalInstance) {
$scope.type = 'BUY';
$scope.wallets = wallets;
$scope.cancel = function() {
$modalInstance.dismiss('cancel');
@ -49,7 +50,7 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
};
var modalInstance = $modal.open({
templateUrl: 'views/modals/wallets.html',
templateUrl: 'views/modals/glidera-wallets.html',
windowClass: animationService.modalAnimated.slideUp,
controller: ModalInstanceCtrl,
});