search_pill: Replace user display_value with full_name.

This commit is contained in:
evykassirer 2024-07-29 22:48:32 -07:00 committed by Tim Abbott
parent 271efb70fa
commit 09f4f787b8
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ export type SearchUserPill = {
operator: string;
negated: boolean;
users: {
display_value: string;
full_name: string;
user_id: number;
email: string;
img_src: string;
@ -95,7 +95,7 @@ function append_user_pill(
operator,
negated,
users: users.map((user) => ({
display_value: user.full_name,
full_name: user.full_name,
user_id: user.user_id,
email: user.email,
img_src: people.small_avatar_url_for_person(user),

View File

@ -7,7 +7,7 @@
<div class="pill{{#if deactivated}} deactivated-pill{{/if}}" data-user-id="{{this.user_id}}">
<img class="pill-image" src="{{this.img_src}}" />
<span class="pill-label">
<span class="pill-value">{{ this.display_value }}</span>
<span class="pill-value">{{ this.full_name }}</span>
{{~#if this.should_add_guest_user_indicator}}&nbsp;<i>({{t 'guest'}})</i>{{~/if~}}
{{~#if deactivated}}&nbsp;({{t 'deactivated'}}){{~/if~}}
{{~#if this.status_emoji_info~}}