Improvement - 320 - Remove red notification bubble from "Recent Transactions" module

This commit is contained in:
Sebastiaan Pasma 2018-05-14 16:01:09 +02:00 committed by Sebastiaan Pasma
commit 814e818380
2 changed files with 0 additions and 11 deletions

View file

@ -281,8 +281,6 @@ angular.module('copayApp.controllers').controller('tabHomeController',
var txIdList = [];
var notificationsBeforeCheck = notifications.length;
for (var i=0; i<notifications.length; i++) {
var txId = notifications[i].txid;
if (txIdList.includes(txId)) {
@ -293,15 +291,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
}
}
var notificationsAfterCheck = notifications.length;
var removedNotifications = notificationsBeforeCheck - notificationsAfterCheck;
if (notificationsBeforeCheck != notificationsAfterCheck) {
total = total - removedNotifications;
}
$scope.notifications = notifications;
$scope.notificationsN = total;
$timeout(function() {
$ionicScrollDelegate.resize();
$scope.$apply();