 
             promise.then (data) ->
                 lightboxService.close($el)
+                $rootscope.$broadcast("projects:reload")
                 $location.path($navUrls.resolve("home"))
+                $confirm.notify("success")
 
             # FIXME: error handling?
             promise.then null, ->
-                console.log "FAIL"
+                $confirm.notify("error")
+                lightboxService.close($el)
 
         $el.on "click", ".button-red", (event) ->
             event.preventDefault()

    return {link:link}

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

## Delete Project Lightbox Directive
#############################################################################

DeleteProjectDirective = ($repo, $rootscope, $auth, $location, $navUrls, $confirm, lightboxService) ->
    link = ($scope, $el, $attrs) ->
        projectToDelete = null
        $scope.$on "deletelightbox:new", (ctx, project)->
