Refreshing US status when modifying task status in US edition
parent
821b7e18c5
commit
1a6f7c0a4a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue