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);
return;
}
$scope.$emit('Local/ClearHistory');
$ionicHistory.removeBackView();
$state.go('tabs.home');
$timeout(function() {
$ionicHistory.removeBackView();
$state.go('tabs.home');
$state.transitionTo('tabs.wallet', {
walletId: $scope.wallet.id
});
}, 100);
});
};