Fix UI calculator. Set default status bar color if no wallet selected
This commit is contained in:
parent
daf45d48a8
commit
9982bef8df
9 changed files with 55 additions and 9 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue