mirror of https://github.com/BTCPrivate/copay.git
remove flashmessages from header
This commit is contained in:
parent
710160ff84
commit
c400ba2695
|
@ -51,10 +51,7 @@ angular.module('copayApp.controllers').controller('HeaderController',
|
||||||
|
|
||||||
$rootScope.$watch('insightError', function(status) {
|
$rootScope.$watch('insightError', function(status) {
|
||||||
if (status === -1) {
|
if (status === -1) {
|
||||||
$rootScope.$flashMessage = {
|
notification.success('Networking restored', 'Connection to insight restored');
|
||||||
type: 'success',
|
|
||||||
message: 'Networking Restored :)',
|
|
||||||
};
|
|
||||||
$rootScope.insightError = 0;
|
$rootScope.insightError = 0;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -98,7 +95,6 @@ angular.module('copayApp.controllers').controller('HeaderController',
|
||||||
|
|
||||||
$scope.signout = function() {
|
$scope.signout = function() {
|
||||||
logout();
|
logout();
|
||||||
$scope.clearFlashMessage();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.refresh = function() {
|
$scope.refresh = function() {
|
||||||
|
@ -111,10 +107,6 @@ angular.module('copayApp.controllers').controller('HeaderController',
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.clearFlashMessage = function() {
|
|
||||||
$rootScope.$flashMessage = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
$rootScope.isCollapsed = true;
|
$rootScope.isCollapsed = true;
|
||||||
|
|
||||||
$scope.toggleCollapse = function() {
|
$scope.toggleCollapse = function() {
|
||||||
|
|
Loading…
Reference in New Issue