Fix wip_limit problem on context change, now more robust directive
parent
d189c18129
commit
ead783ea56
|
@ -305,7 +305,7 @@ KanbanColumnHeightFixerDirective = ->
|
|||
module.directive("tgKanbanColumnHeightFixer", KanbanColumnHeightFixerDirective)
|
||||
|
||||
#############################################################################
|
||||
## Kaban User Story Directive
|
||||
## Kanban User Story Directive
|
||||
#############################################################################
|
||||
|
||||
KanbanUserstoryDirective = ($rootscope) ->
|
||||
|
@ -368,7 +368,7 @@ KanbanSquishColumnDirective = (rs) ->
|
|||
module.directive("tgKanbanSquishColumn", ["$tgResources", KanbanSquishColumnDirective])
|
||||
|
||||
#############################################################################
|
||||
## Kaban WIP Limit Directive
|
||||
## Kanban WIP Limit Directive
|
||||
#############################################################################
|
||||
|
||||
KanbanWipLimitDirective = ->
|
||||
|
@ -378,7 +378,7 @@ KanbanWipLimitDirective = ->
|
|||
redrawWipLimit = ->
|
||||
$el.find(".kanban-wip-limit").remove()
|
||||
timeout 200, ->
|
||||
element = $el.find(".kanban-task")[$scope.status.wip_limit]
|
||||
element = $el.find(".kanban-task")[$scope.$eval($attrs.tgKanbanWipLimit)]
|
||||
if element
|
||||
angular.element(element).before("<div class='kanban-wip-limit'></div>")
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ div.kanban-table(tg-kanban-squish-column)
|
|||
div.kanban-table-inner(tg-kanban-row-width-fixer)
|
||||
div.kanban-uses-box.task-column(ng-class='{vfold:folds[s.id]}', ng-repeat="s in usStatusList track by s.id",
|
||||
tg-kanban-sortable,
|
||||
tg-kanban-wip-limit,
|
||||
tg-kanban-wip-limit="s.wip_limit",
|
||||
tg-kanban-column-height-fixer)
|
||||
div.kanban-task(ng-repeat="us in usByStatus[s.id] track by us.id",
|
||||
tg-kanban-userstory, ng-model="us",
|
||||
|
|
Loading…
Reference in New Issue