remove flashmessages from header

This commit is contained in:
Manuel Araoz 2014-06-26 17:50:20 -03:00
parent 710160ff84
commit c400ba2695
1 changed files with 1 additions and 9 deletions

View File

@ -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() {