reload US if the status has changed
parent
ec5876a84e
commit
f40b9acc92
|
@ -94,6 +94,10 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
initializeEventHandlers: ->
|
initializeEventHandlers: ->
|
||||||
@scope.$on "related-tasks:update", =>
|
@scope.$on "related-tasks:update", =>
|
||||||
@scope.tasks = _.clone(@scope.tasks, false)
|
@scope.tasks = _.clone(@scope.tasks, false)
|
||||||
|
allClosed = _.every @scope.tasks, (task) -> return task.is_closed
|
||||||
|
|
||||||
|
if @scope.us.is_closed != allClosed
|
||||||
|
@.loadUs()
|
||||||
|
|
||||||
@scope.$on "attachment:create", =>
|
@scope.$on "attachment:create", =>
|
||||||
@analytics.trackEvent("attachment", "create", "create attachment on userstory", 1)
|
@analytics.trackEvent("attachment", "create", "create attachment on userstory", 1)
|
||||||
|
|
Loading…
Reference in New Issue