force the nav bar to appear if it disappears

This commit is contained in:
Kadir Sekha 2018-02-28 14:15:44 +05:00
commit 25a30eeb55
27 changed files with 110 additions and 30 deletions

View file

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesAltCurrencyController',
function($scope, $log, $timeout, $ionicHistory, configService, rateService, lodash, profileService, walletService, storageService) {
function($scope, $log, $timeout, $ionicHistory, configService, rateService, lodash, profileService, walletService, storageService, $ionicNavBarDelegate) {
var next = 10;
var completeAlternativeList = [];
@ -48,7 +48,7 @@ angular.module('copayApp.controllers').controller('preferencesAltCurrencyControl
completeAlternativeList.push(c);
}
});
$scope.altCurrencyList = completeAlternativeList.slice(0, 10);
$scope.lastUsedPopularList = lodash.unique(lodash.union($scope.lastUsedAltCurrencyList, popularCurrencyList), 'isoCode');
@ -114,4 +114,8 @@ angular.module('copayApp.controllers').controller('preferencesAltCurrencyControl
init();
});
});
$scope.$on("$ionicView.enter", function(event, data) {
$ionicNavBarDelegate.showBar(true);
});
});