                 $rootscope.$broadcast("projects:reload")
                 $location.path($navUrls.resolve("home"))
                 $confirm.notify("success")
-                projectsService.fetchProjects()
+                currentUserService._loadProjects()
 
             # FIXME: error handling?
             promise.then null, ->

    return {link:link}

module.directive("tgLbDeleteProject", ["$tgRepo", "$rootScope", "$tgAuth", "$tgLocation", "$tgNavUrls",
                                       "$tgConfirm", "lightboxService", "tgLoader", "tgProjectsService", DeleteProjectDirective])


module = angular.module("taigaProject")

CreateProject = ($rootscope, $repo, $confirm, $location, $navurls, $rs, $projectUrl, $loading, lightboxService, $cacheFactory, $translate, currentUserService) ->
    link = ($scope, $el, attrs) ->
        $scope.data = {}
        $scope.templates = []
