Merge pull request #967 from taigaio/issue/4082/kanban-eye

The eye in the archive column in kanban doesn't change on click
stable
Juanfran 2016-04-20 09:41:01 +02:00
commit c47955b4d0
2 changed files with 4 additions and 4 deletions

View File

@ -329,7 +329,7 @@ KanbanArchivedStatusHeaderDirective = ($rootscope, $translate) ->
status = $scope.$eval($attrs.tgKanbanArchivedStatusHeader)
hidden = true
$scope.class = "icon-open-eye"
$scope.class = "icon-watch"
$scope.title = showArchivedText
$el.on "click", (event) ->
@ -337,12 +337,12 @@ KanbanArchivedStatusHeaderDirective = ($rootscope, $translate) ->
$scope.$apply ->
if hidden
$scope.class = "icon-open-eye"
$scope.class = "icon-watch"
$scope.title = showArchivedText
$rootscope.$broadcast("kanban:hide-userstories-for-status", status.id)
else
$scope.class = "icon-closed-eye"
$scope.class = "icon-unwatch"
$scope.title = hideArchivedText
$rootscope.$broadcast("kanban:show-userstories-for-status", status.id)

View File

@ -60,7 +60,7 @@ div.kanban-table(tg-kanban-squish-column)
ng-class="class"
ng-if="s.is_archived"
tg-kanban-archived-status-header="s")
tg-svg.bulk-action(svg-icon="icon-watch")
tg-svg.bulk-action(svg-icon="{{class}}")
div.kanban-table-body
div.kanban-table-inner