diff --git a/public/views/modals/amountInput.html b/public/views/modals/amountInput.html
new file mode 100644
index 000000000..61a7b56e4
--- /dev/null
+++ b/public/views/modals/amountInput.html
@@ -0,0 +1,56 @@
+
+
+
+
+ Enter amount
+
+
+
+
+
{{amount}}
+
{{amountResult}} {{alternativeIsoCode}}
+
${{alternativeAmount}}
+
{{alternativeResult}} {{unitName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/views/send2.html b/public/views/send2.html
deleted file mode 100644
index 7169c1db8..000000000
--- a/public/views/send2.html
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
- Enter amount
-
-
-
-
-
{{amount}}
-
{{amountResult}} {{alternativeIsoCode}}
-
${{alternativeAmount}}
-
{{alternativeResult}} {{unitName}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/public/views/walletHome.html b/public/views/walletHome.html
index 284fef3a3..1342d5cd9 100644
--- a/public/views/walletHome.html
+++ b/public/views/walletHome.html
@@ -415,23 +415,15 @@
-
+
-
-
-
-
diff --git a/src/js/controllers/send2.js b/src/js/controllers/modals/amountInput.js
similarity index 96%
rename from src/js/controllers/send2.js
rename to src/js/controllers/modals/amountInput.js
index 32bcc26e3..5ae1552ba 100644
--- a/src/js/controllers/send2.js
+++ b/src/js/controllers/modals/amountInput.js
@@ -1,6 +1,6 @@
'use strict';
-angular.module('copayApp.controllers').controller('send2Controller', function($scope, lodash, configService, go, rateService) {
+angular.module('copayApp.controllers').controller('amountInputController', function($scope, lodash, configService, go, rateService) {
var unitToSatoshi;
var satToUnit;
var unitDecimals;
diff --git a/src/js/controllers/walletHome.js b/src/js/controllers/walletHome.js
index 878497619..52c0f03c9 100644
--- a/src/js/controllers/walletHome.js
+++ b/src/js/controllers/walletHome.js
@@ -29,6 +29,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
ret.isWindowsPhoneApp = platformInfo.isWP;
ret.countDown = null;
ret.sendMaxInfo = {};
+ ret.showAlternative = false;
var vanillaScope = ret;
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
@@ -232,18 +233,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
// Send
- this.canShowAlternative = function() {
- return $scope.showAlternative;
- };
-
- this.showAlternative = function() {
- $scope.showAlternative = true;
- };
-
- this.hideAlternative = function() {
- $scope.showAlternative = false;
- };
-
this.resetError = function() {
this.error = this.success = null;
};