feedback and history update
This commit is contained in:
parent
402a406827
commit
c20cccedc2
4 changed files with 18 additions and 4 deletions
|
|
@ -113,7 +113,7 @@
|
||||||
<ul class="no-bullet m0 size-14">
|
<ul class="no-bullet m0 size-14">
|
||||||
<h4 class="title m0" translate>Transaction history</h4>
|
<h4 class="title m0" translate>Transaction history</h4>
|
||||||
<li class="line-b p20 oh">
|
<li class="line-b p20 oh">
|
||||||
<button class="black round small expand" ng-style="{'background-color':index.backgroundColor}" ng-click="info.clearTransactionHistory();">
|
<button class="black round small expand" ng-style="{'background-color':index.backgroundColor}" ng-click="info.clearTransactionHistory(); index.clearHistoryFeedback();">
|
||||||
<span translate>Clear history</span>
|
<span translate>Clear history</span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
|| index.onGoingProcessName == 'updatingStatus'
|
|| index.onGoingProcessName == 'updatingStatus'
|
||||||
|| index.onGoingProcessName == 'updatingBalance'
|
|| index.onGoingProcessName == 'updatingBalance'
|
||||||
|| index.onGoingProcessName == 'updatingPendingTxps'
|
|| index.onGoingProcessName == 'updatingPendingTxps'
|
||||||
|
|| index.onGoingProcessName == 'deletingHistory'
|
||||||
"> Updating Wallet... </span>
|
"> Updating Wallet... </span>
|
||||||
<span translate ng-show="index.onGoingProcessName == 'scanning'">Scanning Wallet funds...</span>
|
<span translate ng-show="index.onGoingProcessName == 'scanning'">Scanning Wallet funds...</span>
|
||||||
<span translate ng-show="index.onGoingProcessName == 'recreating'">Recreating Wallet...</span>
|
<span translate ng-show="index.onGoingProcessName == 'recreating'">Recreating Wallet...</span>
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
self.setUxLanguage = function() {
|
||||||
var userLang = uxLanguage.update();
|
var userLang = uxLanguage.update();
|
||||||
self.defaultLanguageIsoCode = userLang;
|
self.defaultLanguageIsoCode = userLang;
|
||||||
|
|
@ -1256,4 +1269,4 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.setFocusedWallet();
|
self.setFocusedWallet();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('preferencesInformation',
|
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 base = 'xpub';
|
||||||
var fc = profileService.focusedClient;
|
var fc = profileService.focusedClient;
|
||||||
var c = fc.credentials;
|
var c = fc.credentials;
|
||||||
|
|
@ -96,7 +96,7 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
||||||
|
|
||||||
this.clearTransactionHistory = function() {
|
this.clearTransactionHistory = function() {
|
||||||
storageService.removeTxHistory(c.walletId, function() {
|
storageService.removeTxHistory(c.walletId, function() {
|
||||||
$log.info('The wallet transaction history has been deleted');
|
return;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue