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; operator: string;
negated: boolean; negated: boolean;
users: { users: {
display_value: string; full_name: string;
user_id: number; user_id: number;
email: string; email: string;
img_src: string; img_src: string;
@ -95,7 +95,7 @@ function append_user_pill(
operator, operator,
negated, negated,
users: users.map((user) => ({ users: users.map((user) => ({
display_value: user.full_name, full_name: user.full_name,
user_id: user.user_id, user_id: user.user_id,
email: user.email, email: user.email,
img_src: people.small_avatar_url_for_person(user), 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}}"> <div class="pill{{#if deactivated}} deactivated-pill{{/if}}" data-user-id="{{this.user_id}}">
<img class="pill-image" src="{{this.img_src}}" /> <img class="pill-image" src="{{this.img_src}}" />
<span class="pill-label"> <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 this.should_add_guest_user_indicator}}&nbsp;<i>({{t 'guest'}})</i>{{~/if~}}
{{~#if deactivated}}&nbsp;({{t 'deactivated'}}){{~/if~}} {{~#if deactivated}}&nbsp;({{t 'deactivated'}}){{~/if~}}
{{~#if this.status_emoji_info~}} {{~#if this.status_emoji_info~}}