Fix fee levels when there is no wallet and hide Glidera if wallet is not complete (#4068)
* fix cordova is not define * Remove focused client from fee level service * remove wallet should be complete in route.js for global preferences routes * get network of the focused client in getCurrentFeeValue function * refactor * do not show testnet fee levels in preference global and refactors * bump new version bwc v2.2.1
This commit is contained in:
parent
975bd99834
commit
b720821d4e
8 changed files with 34 additions and 37 deletions
|
|
@ -15,8 +15,8 @@ angular.module('copayApp.controllers').controller('preferencesGlobalController',
|
|||
this.currentFeeLevel = feeService.getCurrentFeeLevel();
|
||||
this.usePushNotifications = isCordova && !isMobile.Windows();
|
||||
$scope.PNEnabledByUser = true;
|
||||
$scope.isIOS = isMobile.iOS();
|
||||
if (!typeof cordova.plugins.diagnostic != undefined && $scope.isIOS) {
|
||||
$scope.isIOSApp = isMobile.iOS() && isCordova;
|
||||
if ($scope.isIOSApp) {
|
||||
cordova.plugins.diagnostic.isRemoteNotificationsEnabled(function(isEnabled) {
|
||||
$scope.PNEnabledByUser = isEnabled;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue