Juanfran 2014-08-11 10:40:31 +02:00
parent c2b5bf01b7
commit 27e9d7a493
1 changed files with 5 additions and 2 deletions

View File

@ -12,9 +12,12 @@ class ProjectNavController extends taiga.Controller
module.controller("ProjectNavController", ProjectNavController)
class ProjectsController extends taiga.Controller
@.$inject = ["$scope", "$tgResources", "$rootScope", "$tgNavUrls"]
@.$inject = ["$scope", "$tgResources", "$rootScope", "$tgNavUrls", "$tgAuth", "$location"]
constructor: (@scope, @rs, @rootscope, @navurls, $auth, $location) ->
if !$auth.isAuthenticated()
$location.path("/login")
constructor: (@scope, @rs, @rootscope, @navurls) ->
@scope.hideMenu = true
@.projects = []
@.loadInitialData()