Improvement - 172 - Make default price display in fiat

This commit is contained in:
Jean-Baptiste Dominguez 2018-04-25 13:59:25 +09:00
commit 12f1c2e28a
9 changed files with 118 additions and 2 deletions

View file

@ -367,6 +367,15 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
});
$scope.$on("$ionicView.beforeEnter", function(event, data) {
configService.whenAvailable(function (config) {
$scope.selectedPriceDisplay = config.wallet.settings.priceDisplay;
$timeout(function () {
$scope.apply();
});
});
$scope.walletId = data.stateParams.walletId;
$scope.wallet = profileService.getWallet($scope.walletId);
if (!$scope.wallet) return;