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

@ -311,8 +311,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
needProfile: true,
views: {
'main': {
templateUrl: 'views/buyAndSell.html'
},
templateUrl: 'views/buyAndSell.html',
controller: function(platformInfo) {
if (platformInfo.isCordova && StatusBar.isVisible) {
StatusBar.backgroundColorByHexString("#4B6178");
}
}
}
}
})
.state('amazon', {
@ -523,8 +528,13 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
needProfile: true,
views: {
'main': {
templateUrl: 'views/add.html'
},
templateUrl: 'views/add.html',
controller: function(platformInfo) {
if (platformInfo.isCordova && StatusBar.isVisible) {
StatusBar.backgroundColorByHexString("#4B6178");
}
}
}
}
});
})