Sorting tags alphabetically in backlog
parent
34eb0a94b0
commit
fd61bf77af
|
@ -427,6 +427,8 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
|
|||
@scope.filters = {}
|
||||
|
||||
plainTags = _.flatten(_.filter(_.map(@scope.userstories, "tags")))
|
||||
plainTags.sort()
|
||||
|
||||
@scope.filters.tags = _.map _.countBy(plainTags), (v, k) =>
|
||||
obj = {
|
||||
id: k,
|
||||
|
|
|
@ -76,6 +76,7 @@ ColorizeTagsDirective = ->
|
|||
link = ($scope, $el, $attrs, $ctrl) ->
|
||||
render = (srcTags) ->
|
||||
template = templates[$attrs.tgColorizeTagsType]
|
||||
srcTags.sort()
|
||||
tags = _.map srcTags, (tag) ->
|
||||
color = $scope.project.tags_colors[tag]
|
||||
return {name: tag, color: color}
|
||||
|
|
Loading…
Reference in New Issue