Commit 4c717d5a authored by Aron Carroll's avatar Aron Carroll Committed by Randall Leeds

Add accountManagement support to App controller

This will handle whether or not to show the account sheet, it works in
exactly the same way as the login sheet.
parent 380fdd07
......@@ -10,6 +10,9 @@ imports = [
class App
scope:
accountManagement: {show: false} # TODO: Refactor this out.
this.$inject = [
'$element', '$location', '$q', '$rootScope', '$route', '$scope', '$timeout',
'annotator', 'flash', 'identity', 'queryparser', 'socket',
......@@ -349,6 +352,9 @@ class App
filter = streamfilter.getFilter()
sock.send(JSON.stringify({filter}))
$scope.$on 'nav:account', ->
$scope.accountManagement.show = true
$rootScope.viewState =
sort: ''
view: 'Screen'
......
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