add "newTx" flag"
This commit is contained in:
parent
01ba385ca8
commit
ae400dbe27
2 changed files with 11 additions and 5 deletions
|
|
@ -212,7 +212,7 @@
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
|
|
||||||
<div ng-if="index.txHistory[0] && index.updatingTxHistory[index.walletId]" class="row collapse last-transactions-content animated fadeInDown">
|
<div ng-if="index.txHistory[0] && index.updatingTxHistory[index.walletId] && index.newTx" class="row collapse last-transactions-content animated fadeInDown">
|
||||||
<div class="large-6 medium-6 small-6 columns size-14">
|
<div class="large-6 medium-6 small-6 columns size-14">
|
||||||
<div class="m10r left">
|
<div class="m10r left">
|
||||||
<img src="img/icon-new.svg" width="40">
|
<img src="img/icon-new.svg" width="40">
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
|
|
||||||
self.initGlidera();
|
self.initGlidera();
|
||||||
|
|
||||||
self.setCustomBWSFlag();
|
self.setCustomBWSFlag();
|
||||||
if (fc.isPrivKeyExternal()) {
|
if (fc.isPrivKeyExternal()) {
|
||||||
self.needsBackup = false;
|
self.needsBackup = false;
|
||||||
self.openWallet();
|
self.openWallet();
|
||||||
|
|
@ -153,18 +153,18 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
if (profile) profile.disclaimerAccepted = true;
|
if (profile) profile.disclaimerAccepted = true;
|
||||||
self.disclaimerAccepted = true;
|
self.disclaimerAccepted = true;
|
||||||
profileService.setDisclaimerAccepted(function(err) {
|
profileService.setDisclaimerAccepted(function(err) {
|
||||||
if (err) $log.error(err);
|
if (err) $log.error(err);
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
self.isDisclaimerAccepted = function() {
|
self.isDisclaimerAccepted = function() {
|
||||||
if (self.disclaimerAccepted == true) {
|
if (self.disclaimerAccepted == true) {
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
profileService.isDisclaimerAccepted(function(v) {
|
profileService.isDisclaimerAccepted(function(v) {
|
||||||
if (v) {
|
if (v) {
|
||||||
self.acceptDisclaimer();
|
self.acceptDisclaimer();
|
||||||
} else go.path('disclaimer');
|
} else go.path('disclaimer');
|
||||||
});
|
});
|
||||||
|
|
@ -948,6 +948,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
if (err)
|
if (err)
|
||||||
self.txHistoryError = true;
|
self.txHistoryError = true;
|
||||||
|
|
||||||
|
$timeout(function() {
|
||||||
|
self.newTx = false
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
$rootScope.$apply();
|
$rootScope.$apply();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -1276,6 +1280,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on('NewIncomingTx', function() {
|
$rootScope.$on('NewIncomingTx', function() {
|
||||||
|
self.newTx = true;
|
||||||
self.updateAll({
|
self.updateAll({
|
||||||
walletStatus: null,
|
walletStatus: null,
|
||||||
untilItChanges: true,
|
untilItChanges: true,
|
||||||
|
|
@ -1308,6 +1313,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
|
|
||||||
|
|
||||||
$rootScope.$on('NewOutgoingTx', function() {
|
$rootScope.$on('NewOutgoingTx', function() {
|
||||||
|
self.newTx = true;
|
||||||
self.updateAll({
|
self.updateAll({
|
||||||
walletStatus: null,
|
walletStatus: null,
|
||||||
untilItChanges: true,
|
untilItChanges: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue