Show text only if now tags

stable
David Barragán Merino 2014-10-22 17:01:44 +02:00
parent ad0121061e
commit 74954b90c7
1 changed files with 6 additions and 0 deletions

View File

@ -162,6 +162,12 @@ TagLineDirective = ($rootscope, $log, $rs, $tgrepo, $confirm) ->
tags_colors = if $scope.project?.tags_colors? then $scope.project.tags_colors else [] tags_colors = if $scope.project?.tags_colors? then $scope.project.tags_colors else []
renderTags($el, val, editable, tags_colors) renderTags($el, val, editable, tags_colors)
if val? and val.length > 0
$el.find("span.add-tag-text").hide()
else
$el.find("span.add-tag-text").show()
bindOnce $scope, "project", (project) -> bindOnce $scope, "project", (project) ->
# If not editable, no tags preloading is needed. # If not editable, no tags preloading is needed.
editable = if $attrs.editable == "true" then true else false editable = if $attrs.editable == "true" then true else false