Merge pull request #1374 from taigaio/issue/5243

Issue#5243 show correctly the wip limit line
stable
Alejandro 2017-09-25 15:26:27 +02:00 committed by GitHub
commit 09551ef917
1 changed files with 4 additions and 3 deletions

View File

@ -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("<div class='kanban-wip-limit'></div>")
@ -488,4 +489,4 @@ KanbanWipLimitDirective = ->
return {link: link}
module.directive("tgKanbanWipLimit", KanbanWipLimitDirective)
module.directive("tgKanbanWipLimit", ["$timeout", KanbanWipLimitDirective])