fix #413
parent
a2336921d3
commit
5b2c6284fa
|
@ -49,6 +49,7 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
|
|||
_.bindAll(@)
|
||||
|
||||
@scope.sectionName = "Backlog"
|
||||
@showTags = false
|
||||
|
||||
promise = @.loadInitialData()
|
||||
promise.then null, =>
|
||||
|
@ -65,6 +66,10 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
|
|||
@scope.$on("sprint:us:moved", @.loadSprints)
|
||||
@scope.$on("sprint:us:moved", @.loadProjectStats)
|
||||
|
||||
toggleShowTags: ->
|
||||
@scope.$apply () =>
|
||||
@showTags = !@showTags
|
||||
|
||||
loadProjectStats: ->
|
||||
return @rs.projects.stats(@scope.projectId).then (stats) =>
|
||||
@scope.stats = stats
|
||||
|
@ -437,7 +442,8 @@ BacklogDirective = ($repo, $rootscope) ->
|
|||
$el.on "click", "#show-tags", (event) ->
|
||||
event.preventDefault()
|
||||
target = angular.element(event.currentTarget)
|
||||
$el.find(".user-story-tags").toggle()
|
||||
# $el.find(".user-story-tags").toggle()
|
||||
$ctrl.toggleShowTags()
|
||||
target.toggleClass("active")
|
||||
toggleText(target.find(".text"), ["Hide Tags", "Show Tags"]) # TODO: i18n
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
div.row.us-item-row(ng-repeat="us in visibleUserstories|orderBy:order track by us.id", tg-draggable)
|
||||
div.user-stories
|
||||
div.user-story-tags
|
||||
div.user-story-tags(ng-show="ctrl.showTags")
|
||||
span.tag(ng-repeat="tag in us.tags") {{ tag }}
|
||||
div.user-story-name
|
||||
input(type="checkbox", name="")
|
||||
|
|
|
@ -127,7 +127,6 @@
|
|||
}
|
||||
}
|
||||
.user-story-tags {
|
||||
display: none;
|
||||
margin-top: .3rem;
|
||||
.tag {
|
||||
margin-right: .1rem;
|
||||
|
|
Loading…
Reference in New Issue