diff --git a/app/coffee/modules/tasks/detail.coffee b/app/coffee/modules/tasks/detail.coffee index acfd6dca..5e8f4b5b 100644 --- a/app/coffee/modules/tasks/detail.coffee +++ b/app/coffee/modules/tasks/detail.coffee @@ -177,7 +177,7 @@ module.directive("tgTaskStatusDisplay", TaskStatusDisplayDirective) ## Task status button directive ############################################################################# -TaskStatusButtonDirective = ($rootScope, $repo) -> +TaskStatusButtonDirective = ($rootScope, $repo, $confirm) -> # Display the status of Task and you can edit it. # # Example: @@ -186,12 +186,13 @@ TaskStatusButtonDirective = ($rootScope, $repo) -> # Requirements: # - Task object (ng-model) # - scope.statusById object + # - $scope.project.my_permissions template = _.template(""" -
+
<%= status.name %> - + <% if(editable){ %><% }%> status