Fix show/hide buttons on backlog options

stable
Xavier Julián 2015-10-14 09:19:23 +02:00 committed by Alejandro Alonso
parent a52790ff28
commit f3e9110351
2 changed files with 4 additions and 2 deletions

View File

@ -705,12 +705,12 @@ BacklogDirective = ($repo, $rootscope, $translate) ->
elm.addClass("active") elm.addClass("active")
text = $translate.instant("BACKLOG.TAGS.HIDE") text = $translate.instant("BACKLOG.TAGS.HIDE")
elm.find(".text").text(text) elm.text(text)
else else
elm.removeClass("active") elm.removeClass("active")
text = $translate.instant("BACKLOG.TAGS.SHOW") text = $translate.instant("BACKLOG.TAGS.SHOW")
elm.find(".text").text(text) elm.text(text)
showHideFilter = ($scope, $el, $ctrl) -> showHideFilter = ($scope, $el, $ctrl) ->
sidebar = $el.find("sidebar.filters-bar") sidebar = $el.find("sidebar.filters-bar")

View File

@ -32,12 +32,14 @@ div.wrapper(tg-backlog, ng-controller="BacklogController as ctrl",
span.icon.icon-move span.icon.icon-move
span.text(translate="BACKLOG.MOVE_US_TO_CURRENT_SPRINT") span.text(translate="BACKLOG.MOVE_US_TO_CURRENT_SPRINT")
a.trans-button( a.trans-button(
ng-if="userstories.length"
href="" href=""
title="{{'BACKLOG.FILTERS.TOGGLE' | translate}}" title="{{'BACKLOG.FILTERS.TOGGLE' | translate}}"
id="show-filters-button" id="show-filters-button"
translate="BACKLOG.FILTERS.SHOW" translate="BACKLOG.FILTERS.SHOW"
) )
a.trans-button( a.trans-button(
ng-if="userstories.length"
href="" href=""
title="{{'BACKLOG.TAGS.TOGGLE' | translate}}" title="{{'BACKLOG.TAGS.TOGGLE' | translate}}"
id="show-tags" id="show-tags"