Issue#5243 show correctly the wip limit line
parent
3176800812
commit
b46dcc4bc0
|
@ -318,6 +318,7 @@ class KanbanController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.Fi
|
||||||
if headers && headers['taiga-info-order-updated']
|
if headers && headers['taiga-info-order-updated']
|
||||||
order = JSON.parse(headers['taiga-info-order-updated'])
|
order = JSON.parse(headers['taiga-info-order-updated'])
|
||||||
@kanbanUserstoriesService.assignOrders(order)
|
@kanbanUserstoriesService.assignOrders(order)
|
||||||
|
@scope.$broadcast("redraw:wip")
|
||||||
|
|
||||||
return promise
|
return promise
|
||||||
|
|
||||||
|
@ -466,13 +467,13 @@ module.directive("tgKanbanSquishColumn", ["$tgResources", "tgProjectService", Ka
|
||||||
## Kanban WIP Limit Directive
|
## Kanban WIP Limit Directive
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
KanbanWipLimitDirective = ->
|
KanbanWipLimitDirective = ($timeout) ->
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
status = $scope.$eval($attrs.tgKanbanWipLimit)
|
status = $scope.$eval($attrs.tgKanbanWipLimit)
|
||||||
|
|
||||||
redrawWipLimit = =>
|
redrawWipLimit = =>
|
||||||
$el.find(".kanban-wip-limit").remove()
|
$el.find(".kanban-wip-limit").remove()
|
||||||
timeout 200, =>
|
$timeout =>
|
||||||
element = $el.find("tg-card")[status.wip_limit]
|
element = $el.find("tg-card")[status.wip_limit]
|
||||||
if element
|
if element
|
||||||
angular.element(element).before("<div class='kanban-wip-limit'></div>")
|
angular.element(element).before("<div class='kanban-wip-limit'></div>")
|
||||||
|
@ -488,4 +489,4 @@ KanbanWipLimitDirective = ->
|
||||||
|
|
||||||
return {link: link}
|
return {link: link}
|
||||||
|
|
||||||
module.directive("tgKanbanWipLimit", KanbanWipLimitDirective)
|
module.directive("tgKanbanWipLimit", ["$timeout", KanbanWipLimitDirective])
|
||||||
|
|
Loading…
Reference in New Issue