'use strict'; angular.module('copayApp.controllers').controller('activityController', function($timeout, $scope, $log, $ionicModal, lodash, txpModalService, profileService, walletService, ongoingProcess, popupService, gettextCatalog, $state) { $scope.openTxpModal = txpModalService.open; $scope.fetchingNotifications = true; $scope.$on("$ionicView.enter", function(event, data) { profileService.getNotifications(50, function(err, n) { if (err) { $log.error(err); return; } var txIdList = []; var notificationsBeforeCheck = n.length; for (var i=0; i