fix issue #4789 - fix kanban headers

stable
Juanfran 2016-11-23 10:23:28 +01:00
parent bcb7c5e301
commit 7e6cb6877a
1 changed files with 5 additions and 6 deletions

View File

@ -409,12 +409,8 @@ module.directive("tgKanbanArchivedStatusIntro", ["$translate", "tgKanbanUserstor
## Kanban Squish Column Directive ## Kanban Squish Column Directive
############################################################################# #############################################################################
KanbanSquishColumnDirective = (rs) -> KanbanSquishColumnDirective = (rs, projectService) ->
link = ($scope, $el, $attrs) -> link = ($scope, $el, $attrs) ->
$scope.$on "project:loaded", (event, project) ->
$scope.folds = rs.kanban.getStatusColumnModes(project.id)
updateTableWidth()
$scope.foldStatus = (status) -> $scope.foldStatus = (status) ->
$scope.folds[status.id] = !!!$scope.folds[status.id] $scope.folds[status.id] = !!!$scope.folds[status.id]
rs.kanban.storeStatusColumnModes($scope.projectId, $scope.folds) rs.kanban.storeStatusColumnModes($scope.projectId, $scope.folds)
@ -432,9 +428,12 @@ KanbanSquishColumnDirective = (rs) ->
$el.find('.kanban-table-inner').css("width", totalWidth) $el.find('.kanban-table-inner').css("width", totalWidth)
$scope.folds = rs.kanban.getStatusColumnModes(projectService.project.get('id'))
updateTableWidth()
return {link: link} return {link: link}
module.directive("tgKanbanSquishColumn", ["$tgResources", KanbanSquishColumnDirective]) module.directive("tgKanbanSquishColumn", ["$tgResources", "tgProjectService", KanbanSquishColumnDirective])
############################################################################# #############################################################################
## Kanban WIP Limit Directive ## Kanban WIP Limit Directive