go to wallet when clear history

This commit is contained in:
Gabriel Bazán 2016-09-30 12:06:56 -03:00
parent 583e0a560c
commit 550e760337
1 changed files with 5 additions and 3 deletions

View File

@ -122,11 +122,13 @@ angular.module('copayApp.controllers').controller('preferencesHistory',
$log.error(err); $log.error(err);
return; return;
} }
$scope.$emit('Local/ClearHistory');
$ionicHistory.removeBackView();
$state.go('tabs.home');
$timeout(function() { $timeout(function() {
$ionicHistory.removeBackView(); $state.transitionTo('tabs.wallet', {
$state.go('tabs.home'); walletId: $scope.wallet.id
});
}, 100); }, 100);
}); });
}; };