Refreshing US status when modifying task status in US edition

stable
Alejandro Alonso 2014-09-25 17:44:56 +02:00
parent 821b7e18c5
commit 1a6f7c0a4a
1 changed files with 3 additions and 0 deletions

View File

@ -269,6 +269,7 @@ UsStatusDetailDirective = () ->
link = ($scope, $el, $attrs, $model) ->
editable = $attrs.editable?
updatingSelectedRoleId = null
$ctrl = $el.controller()
showSelectPoints = (onClose) ->
us = $model.$modelValue
@ -323,6 +324,8 @@ UsStatusDetailDirective = () ->
$scope.$on "related-tasks:update", ->
us = $scope.$eval $attrs.ngModel
if us?
# Reload the us because the status could have changed
$ctrl.loadUs()
renderUsstatus(us)
if editable