diff --git a/js/controllers/header.js b/js/controllers/header.js index d6b2f8924..7d3d3d692 100644 --- a/js/controllers/header.js +++ b/js/controllers/header.js @@ -51,10 +51,7 @@ angular.module('copayApp.controllers').controller('HeaderController', $rootScope.$watch('insightError', function(status) { if (status === -1) { - $rootScope.$flashMessage = { - type: 'success', - message: 'Networking Restored :)', - }; + notification.success('Networking restored', 'Connection to insight restored'); $rootScope.insightError = 0; } }); @@ -98,7 +95,6 @@ angular.module('copayApp.controllers').controller('HeaderController', $scope.signout = function() { logout(); - $scope.clearFlashMessage(); }; $scope.refresh = function() { @@ -111,10 +107,6 @@ angular.module('copayApp.controllers').controller('HeaderController', } }; - $scope.clearFlashMessage = function() { - $rootScope.$flashMessage = {}; - }; - $rootScope.isCollapsed = true; $scope.toggleCollapse = function() {