diff --git a/public/views/preferencesInformation.html b/public/views/preferencesInformation.html
index 56eedefc4..05b3e2758 100644
--- a/public/views/preferencesInformation.html
+++ b/public/views/preferencesInformation.html
@@ -113,7 +113,7 @@
Transaction history
-
-
diff --git a/public/views/walletHome.html b/public/views/walletHome.html
index 5aa184a59..5bf80d76a 100644
--- a/public/views/walletHome.html
+++ b/public/views/walletHome.html
@@ -43,6 +43,7 @@
|| index.onGoingProcessName == 'updatingStatus'
|| index.onGoingProcessName == 'updatingBalance'
|| index.onGoingProcessName == 'updatingPendingTxps'
+ || index.onGoingProcessName == 'deletingHistory'
"> Updating Wallet...
Scanning Wallet funds...
Recreating Wallet...
diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js
index 470a3ef85..a96a20c71 100644
--- a/src/js/controllers/index.js
+++ b/src/js/controllers/index.js
@@ -910,6 +910,19 @@ angular.module('copayApp.controllers').controller('indexController', function($r
});
};
+ self.clearHistoryFeedback = function() {
+ self.txHistory = [];
+ $log.debug('The wallet transaction history has been deleted');
+ self.setOngoingProcess('deletingHistory', true);
+
+ self.updateHistory();
+ go.walletHome();
+
+ $timeout(function() {
+ self.setOngoingProcess('deletingHistory', false);
+ }, 2000);
+ };
+
self.setUxLanguage = function() {
var userLang = uxLanguage.update();
self.defaultLanguageIsoCode = userLang;
@@ -1256,4 +1269,4 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setFocusedWallet();
});
});
-});
\ No newline at end of file
+});
diff --git a/src/js/controllers/preferencesInformation.js b/src/js/controllers/preferencesInformation.js
index b2ec211ec..6cf9f08e8 100644
--- a/src/js/controllers/preferencesInformation.js
+++ b/src/js/controllers/preferencesInformation.js
@@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesInformation',
- function($scope, $log, $timeout, isMobile, gettextCatalog, lodash, profileService, storageService) {
+ function($scope, $log, $timeout, isMobile, gettextCatalog, lodash, profileService, storageService, go) {
var base = 'xpub';
var fc = profileService.focusedClient;
var c = fc.credentials;
@@ -96,7 +96,7 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
this.clearTransactionHistory = function() {
storageService.removeTxHistory(c.walletId, function() {
- $log.info('The wallet transaction history has been deleted');
+ return;
});
}
});