From b7943c1a88eb4ae9fffc6a1b0c86ee72160e25b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Fri, 29 Jan 2016 13:37:44 +0100 Subject: [PATCH] Assigned to fixes --- app/coffee/modules/common/components.coffee | 1 + app/partials/common/components/assigned-to.jade | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/coffee/modules/common/components.coffee b/app/coffee/modules/common/components.coffee index 32b61689..dece6008 100644 --- a/app/coffee/modules/common/components.coffee +++ b/app/coffee/modules/common/components.coffee @@ -304,6 +304,7 @@ AssignedToDirective = ($rootscope, $confirm, $repo, $loading, $qqueue, $template isUnassigned: isUnassigned isEditable: isEditable() isIocaine: isIocaine + fullNameVisible: !(isUnassigned && !$currentUserService.isAuthenticated()) } html = $compile(template(ctx))($scope) $el.html(html) diff --git a/app/partials/common/components/assigned-to.jade b/app/partials/common/components/assigned-to.jade index 1c23647b..25b4b52b 100644 --- a/app/partials/common/components/assigned-to.jade +++ b/app/partials/common/components/assigned-to.jade @@ -19,7 +19,7 @@ class!="user-assigned <% if (isEditable) { %>editable<% }; %>" ) span.assigned-name - <% if (isEditable && isUnassigned) { %> + <% if (fullNameVisible) { %> <%- fullName %> <% }; %> <% if (isEditable && !isUnassigned) { %>