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 txIdList = [];
var notificationsBeforeCheck = notifications.length;
for (var i=0; i<notifications.length; i++) { for (var i=0; i<notifications.length; i++) {
var txId = notifications[i].txid; var txId = notifications[i].txid;
if (txIdList.includes(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.notifications = notifications;
$scope.notificationsN = total;
$timeout(function() { $timeout(function() {
$ionicScrollDelegate.resize(); $ionicScrollDelegate.resize();
$scope.$apply(); $scope.$apply();

View file

@ -51,7 +51,6 @@
<a class="item item-icon-right item-heading" ui-sref="tabs.activity"> <a class="item item-icon-right item-heading" ui-sref="tabs.activity">
<span translate>Recent Transactions</span> <span translate>Recent Transactions</span>
<i class="icon bp-arrow-right"></i> <i class="icon bp-arrow-right"></i>
<span class="badge badge-assertive m5t m10r" ng-show="notificationsN>3"> {{notificationsN}}</span>
</a> </a>
<a class="item item-sub activity" ng-repeat="notification in notifications" ng-click="openNotificationModal(notification)"> <a class="item item-sub activity" ng-repeat="notification in notifications" ng-click="openNotificationModal(notification)">
<span ng-include="'views/includes/walletActivity.html'"></span> <span ng-include="'views/includes/walletActivity.html'"></span>