From c400ba2695e348384aa3a475b0073f1e4b0e3d33 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 26 Jun 2014 17:50:20 -0300 Subject: [PATCH] remove flashmessages from header --- js/controllers/header.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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() {