fix #341
parent
c2b5bf01b7
commit
27e9d7a493
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue