From 1a6f7c0a4ae0b51e030c9f5f70b826b14b3260b4 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 25 Sep 2014 17:44:56 +0200 Subject: [PATCH] Refreshing US status when modifying task status in US edition --- app/coffee/modules/userstories/detail.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/coffee/modules/userstories/detail.coffee b/app/coffee/modules/userstories/detail.coffee index 2aa80eed..e6059190 100644 --- a/app/coffee/modules/userstories/detail.coffee +++ b/app/coffee/modules/userstories/detail.coffee @@ -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