 ## Assigned to directive
 #############################################################################
 
-AssignedToDirective = ($rootscope) ->
+AssignedToDirective = ($rootscope, $confirm) ->
     #TODO: i18n
     template = _.template("""
         <% if (assignedTo) { %>


    return {link:link, require:"ngModel"}

module.directive("tgAssignedTo", ["$rootScope", AssignedToDirective])


        $el.on "click", ".icon-delete", (event) ->
            event.preventDefault()
            title = "Remove assigned to"
            subtitle = ""
            $confirm.ask(title, subtitle).then =>
                $model.$setViewValue(null)

        $scope.$on "assigned-to:added", (ctx, user) ->
