Commit 75a58033 authored by Aron Carroll's avatar Aron Carroll Committed by Randall Leeds

Hide the account sheet on logout

parent 70565c4b
...@@ -53,6 +53,7 @@ identityFactory = [ ...@@ -53,6 +53,7 @@ identityFactory = [
$promise = session.$logout() $promise = session.$logout()
$resolved = false $resolved = false
angular.copy({$promise, $resolved}, session) angular.copy({$promise, $resolved}, session)
$rootScope.$broadcast 'logout'
request: -> request: ->
$rootScope.$broadcast 'authorize' $rootScope.$broadcast 'authorize'
......
...@@ -49,7 +49,10 @@ class AccountManagement ...@@ -49,7 +49,10 @@ class AccountManagement
promise.$promise.then(onSuccess, angular.bind(null, onError, form)) promise.$promise.then(onSuccess, angular.bind(null, onError, form))
$rootScope.$on 'nav:account', -> $rootScope.$on 'nav:account', ->
$scope.$apply -> $scope.sheet = true $scope.sheet = true
$rootScope.$on 'logout', ->
$scope.sheet = false
angular.module('h.controllers.AccountManagement', []) angular.module('h.controllers.AccountManagement', [])
.controller('AccountManagement', AccountManagement) .controller('AccountManagement', AccountManagement)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment