diff --git a/app/coffee/modules/kanban/main.coffee b/app/coffee/modules/kanban/main.coffee index 6d331551..7e137c8a 100644 --- a/app/coffee/modules/kanban/main.coffee +++ b/app/coffee/modules/kanban/main.coffee @@ -318,6 +318,7 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi if headers && headers['taiga-info-order-updated'] order = JSON.parse(headers['taiga-info-order-updated']) @kanbanUserstoriesService.assignOrders(order) + @scope.$broadcast("redraw:wip") return promise @@ -466,13 +467,13 @@ module.directive("tgKanbanSquishColumn", ["$tgResources", "tgProjectService", Ka ## Kanban WIP Limit Directive ############################################################################# -KanbanWipLimitDirective = -> +KanbanWipLimitDirective = ($timeout) -> link = ($scope, $el, $attrs) -> status = $scope.$eval($attrs.tgKanbanWipLimit) redrawWipLimit = => $el.find(".kanban-wip-limit").remove() - timeout 200, => + $timeout => element = $el.find("tg-card")[status.wip_limit] if element angular.element(element).before("
") @@ -488,4 +489,4 @@ KanbanWipLimitDirective = -> return {link: link} -module.directive("tgKanbanWipLimit", KanbanWipLimitDirective) +module.directive("tgKanbanWipLimit", ["$timeout", KanbanWipLimitDirective])