Fix mobile response
This commit is contained in:
parent
b0d24c6814
commit
a63a8e4aaa
2 changed files with 11 additions and 0 deletions
|
|
@ -15,6 +15,9 @@ angular.module('copayApp.controllers').controller('amazonController',
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self.giftCards = gcds;
|
self.giftCards = gcds;
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$digest();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -69,6 +72,9 @@ angular.module('copayApp.controllers').controller('amazonController',
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$scope.card = data;
|
$scope.card = data;
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$digest();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openWalletsModal = function(wallets) {
|
$scope.openWalletsModal = function(wallets) {
|
||||||
|
if (self.loading) return;
|
||||||
self.error = null;
|
self.error = null;
|
||||||
self.errorInfo = null;
|
self.errorInfo = null;
|
||||||
var ModalInstanceCtrl = function($scope, $modalInstance) {
|
var ModalInstanceCtrl = function($scope, $modalInstance) {
|
||||||
|
|
@ -94,6 +95,7 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setAmount = function(plus) {
|
this.setAmount = function(plus) {
|
||||||
|
if (self.loading) return;
|
||||||
if (plus && $scope.fiat < maximumAmount ) {
|
if (plus && $scope.fiat < maximumAmount ) {
|
||||||
stepAmount = stepAmount + 1;
|
stepAmount = stepAmount + 1;
|
||||||
$scope.fiat = stepAmount * multiplierAmount;
|
$scope.fiat = stepAmount * multiplierAmount;
|
||||||
|
|
@ -184,6 +186,9 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
self.giftCard = giftCard;
|
self.giftCard = giftCard;
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$digest();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue