From f7c01fe9cb5e0bb37055eb803ddb4679684700d5 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sat, 1 Jul 2017 08:00:16 +0800 Subject: [PATCH] selection box added to importing last n blocks --- html/js/controllers/import_wallet.js | 3 ++- html/modals/imported-account.html | 24 +++++++++++++++++------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/html/js/controllers/import_wallet.js b/html/js/controllers/import_wallet.js index 97c06ca..378bf9d 100755 --- a/html/js/controllers/import_wallet.js +++ b/html/js/controllers/import_wallet.js @@ -33,6 +33,7 @@ thinwalletCtrls.controller("ImportWalletCtrl", function($scope, $location, $http $scope.import_fee = JSBigInt.ZERO; $scope.status = ''; $scope.command = ''; + $scope.no_blocks_to_import = "1000"; function get_import_request() { if ($scope.account_scan_start_height === 0) { @@ -64,7 +65,7 @@ thinwalletCtrls.controller("ImportWalletCtrl", function($scope, $location, $http }); $scope.importLast = function(no_blocks) { - alert(no_blocks); + alert($scope.no_blocks_to_import); } }); diff --git a/html/modals/imported-account.html b/html/modals/imported-account.html index c8eed46..6e4f00e 100755 --- a/html/modals/imported-account.html +++ b/html/modals/imported-account.html @@ -4,21 +4,31 @@
+
-

Importing account a

- +

Importing transactions

-
Pay a small fee to import all the previous transactions for this account (you can always find this later in Account > Import Wallet)
+
This will scan all blocks in the blockchain. This is very resource intensive task. + Thus a small fee is required.
+ +
+ +
- -
Imports transactions from last 10000 blocks (last 5-6 days).
+
You can send and receive coins from your account, but you won't be able to see or spend any transactions you have received before now