mirror of https://github.com/zulip/zulip.git
search_pill: Replace user display_value with full_name.
This commit is contained in:
parent
271efb70fa
commit
09f4f787b8
|
@ -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),
|
||||||
|
|
|
@ -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}} <i>({{t 'guest'}})</i>{{~/if~}}
|
{{~#if this.should_add_guest_user_indicator}} <i>({{t 'guest'}})</i>{{~/if~}}
|
||||||
{{~#if deactivated}} ({{t 'deactivated'}}){{~/if~}}
|
{{~#if deactivated}} ({{t 'deactivated'}}){{~/if~}}
|
||||||
{{~#if this.status_emoji_info~}}
|
{{~#if this.status_emoji_info~}}
|
||||||
|
|
Loading…
Reference in New Issue