Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #397 from blockchain/bug-fixes
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
Sjors committed Apr 25, 2016
2 parents 820efc9 + af717f8 commit eb6796f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function ChangePasswordCtrl($scope, $log, Wallet, Alerts, $uibModalInstance, $tr

const error = (err) => {
$scope.status.waiting = false;
$scope.errors.unsuccessful = err;
$translate(err).then(msg => $scope.errors.unsuccessful = msg);
};

$scope.status.waiting = true;
Expand Down
10 changes: 6 additions & 4 deletions assets/js/services/wallet.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,13 @@ function Wallet( $http, $window, $timeout, $location, Alerts, MyWallet

wallet.changePassword = (newPassword, successCallback, errorCallback) => {
wallet.store.changePassword(newPassword, (() => {
Alerts.displaySuccess('CHANGE_PASSWORD_SUCCESS');
successCallback(translation);
let msg = 'CHANGE_PASSWORD_SUCCESS';
Alerts.displaySuccess(msg);
successCallback(msg);
}), () => {
Alerts.displayError('CHANGE_PASSWORD_FAILED');
errorCallback(translation);
let err = 'CHANGE_PASSWORD_FAILED';
Alerts.displayError(err);
errorCallback(err);
});
};

Expand Down

0 comments on commit eb6796f

Please sign in to comment.