From 507e3f6ddfa33c2af83b1fa235891be700d39924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Tue, 27 Feb 2018 10:10:38 +0100 Subject: [PATCH] Reload issues list after editing assigned user inline --- app/coffee/modules/issues/list.coffee | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/coffee/modules/issues/list.coffee b/app/coffee/modules/issues/list.coffee index 3abcf2d0..f662a41d 100644 --- a/app/coffee/modules/issues/list.coffee +++ b/app/coffee/modules/issues/list.coffee @@ -655,13 +655,15 @@ IssueAssignedToInlineEditionDirective = ($repo, $rootscope, $translate, avatarSe $el.unbind("click") $el.find("a").addClass("not-clickable") - $scope.$on "assigned-to:added", (ctx, userId, updatedIssue) => + $scope.$on "assigned-to:added", (ctx, userId, updatedIssue) -> if updatedIssue.id == issue.id updatedIssue.assigned_to = userId - $repo.save(updatedIssue) - updateIssue(updatedIssue) + $repo.save(issue).then -> + updateIssue(updatedIssue) + $ctrl.loadIssues() + $ctrl.generateFilters() - $scope.$watch $attrs.tgIssueAssignedToInlineEdition, (val) => + $scope.$watch $attrs.tgIssueAssignedToInlineEdition, (val) -> updateIssue(val) $scope.$on "$destroy", ->