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

Bug fixes #230

Merged
merged 4 commits into from
Dec 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 21 additions & 23 deletions app/partials/recover-funds.jade
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,27 @@
p {{ errors.confirmation }}
.flex-center.flex-end.mvl
img(ng-show="working" src="img/spinner.gif")
button.button-muted.mrm(
type="button"
ng-switch-when="1"
ng-disabled="working"
ui-sref="public.help"
translate="GO_BACK")
button.button-primary(
type="submit"
ng-switch-when="1"
ng-click="nextStep()"
ng-disabled="!recoveryForm.$valid"
translate="CONTINUE")
button.button-muted.mrm(
type="button"
ng-switch-when="2"
ng-click="goBack()"
translate="GO_BACK")
button.button-success(
type="submit"
ng-switch-when="2"
ng-click="performImport()"
ng-disabled="!recoveryForm.$valid || working"
translate="RECOVER_FUNDS")
div(ng-switch-when="1")
button.button-muted.mrm(
type="button"
ng-disabled="working"
ui-sref="public.help"
translate="GO_BACK")
button.button-primary(
type="submit"
ng-click="nextStep()"
ng-disabled="!recoveryForm.$valid"
translate="CONTINUE")
div(ng-switch-when="2")
button.button-muted.mrm(
type="button"
ng-click="goBack()"
translate="GO_BACK")
button.button-success(
type="submit"
ng-click="performImport()"
ng-disabled="!recoveryForm.$valid || working"
translate="RECOVER_FUNDS")
.flex-center.flex-justify.flex-column(ng-switch-when="3")
.level-complete.flex-center.flex-justify
i.ti-check.bright-green
Expand Down
2 changes: 1 addition & 1 deletion app/partials/send.jade
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
.total-amounts.aaa.mbm
.flex-center.pbl
label.mbn(translate="OVERVIEW")
helper-button(content="DYK3")
helper-button(content="DYK_TX_FEES")
table.width-100
tr
td(translate="AMOUNT")
Expand Down
5 changes: 3 additions & 2 deletions assets/js/controllers/send.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ function SendCtrl($scope, $log, Wallet, Alerts, currency, $uibModalInstance, $ti
let tx = $scope.transaction;
if (!tx.from) return 0;
let availableBal = tx.from.balance - tx.fee;
let maxAvailable = $scope.advanced ? availableBal : tx.sweepAmount;
return maxAvailable || availableBal;
let maxAvailable = ($scope.advanced ? availableBal : tx.sweepAmount) || availableBal;
if (maxAvailable < 0) maxAvailable = 0;
return maxAvailable;
};

$scope.$watch("transaction.destinations", (destinations) => {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/services/wallet.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ function Wallet($http, $window, $timeout, Alerts, MyWallet, MyBlockchainApi, MyB
successCallback();
};
let error = () => {
Alerts.displayError('Second password cannot be unset. Contact support.');
$translate('SECOND_PASSWORD_REMOVE_ERR').then(Alerts.displayError);
errorCallback();
};
let cancel = errorCallback;
Expand Down
1 change: 1 addition & 0 deletions locales/en-human.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
"SECOND_PASSWORD_EXPLAIN" : "For Additional security, you can choose a second password that is required whenever you want to spend bitcoins. This is different from your standard wallet password. If you set your second wallet password, don’t forget it!",
"SECOND_PASSWORD_WARNING" : "This is different from your standard wallet password. If you set your second wallet password, don’t forget it!",
"SECOND_PASSWORD_CANCEL": "Your second password is required to send bitcoin. Please try again",
"SECOND_PASSWORD_REMOVE_ERR": "Second password cannot be removed. Please contact support.",
"REMEMBER_2FA" : "Remember 2-step Verification",
"REMEMBER_2FA_EXPLAIN" : "Your browser will be remembered for a short period of time, allowing you to login again without having to re-authenticate. Disable this to require full authentication every time you login. This will not affect your current browser until you delete all cookies.",
"BLOCK_TOR" : "Wallet access via Tor",
Expand Down