From 74954b90c783eb4701fdddd6c93f833d1ebde346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Wed, 22 Oct 2014 17:01:44 +0200 Subject: [PATCH] Show text only if now tags --- app/coffee/modules/common/tags.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/coffee/modules/common/tags.coffee b/app/coffee/modules/common/tags.coffee index c7496294..63357422 100644 --- a/app/coffee/modules/common/tags.coffee +++ b/app/coffee/modules/common/tags.coffee @@ -162,6 +162,12 @@ TagLineDirective = ($rootscope, $log, $rs, $tgrepo, $confirm) -> tags_colors = if $scope.project?.tags_colors? then $scope.project.tags_colors else [] 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) -> # If not editable, no tags preloading is needed. editable = if $attrs.editable == "true" then true else false