Fix UI calculator. Set default status bar color if no wallet selected

This commit is contained in:
Gustavo Maximiliano Cortez 2016-08-10 12:08:39 -03:00
commit 9982bef8df
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
9 changed files with 55 additions and 9 deletions

View file

@ -106,6 +106,11 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
$rootScope.shouldHideMenuBar = false;
});
if (platformInfo.isCordova && StatusBar.isVisible) {
var fc = profileService.focusedClient;
StatusBar.backgroundColorByHexString(fc.backgroundColor);
}
this.onQrCodeScanned = function(data) {
if (data) go.send();
$rootScope.$emit('dataScanned', data);
@ -586,6 +591,11 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
var fc = profileService.focusedClient;
$scope.color = fc.backgroundColor;
$scope.showAlternativeAmount = $scope.showAlternative || null;
if ($scope.showAlternativeAmount) {
$scope.amount = $scope.sendForm.alternative.$viewValue || null;
} else {
$scope.amount = $scope.sendForm.amount.$viewValue || null;
}
$scope.self = self;
$scope.addr = addr;