feat: Include email in the searched result (#7397)
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
"EMPTY_STATE_DEFAULT": "Search by conversation id, email, phone number, messages for better search results. ",
|
"EMPTY_STATE_DEFAULT": "Search by conversation id, email, phone number, messages for better search results. ",
|
||||||
"BOT_LABEL": "Bot",
|
"BOT_LABEL": "Bot",
|
||||||
"READ_MORE": "Read more",
|
"READ_MORE": "Read more",
|
||||||
"WROTE": "wrote:"
|
"WROTE": "wrote:",
|
||||||
|
"FROM": "from",
|
||||||
|
"EMAIL": "email"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,10 +20,16 @@
|
|||||||
<span class="created-at">{{ createdAtTime }}</span>
|
<span class="created-at">{{ createdAtTime }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="user-details">
|
||||||
<h5 v-if="name" class="text-block-title name">
|
<h5 v-if="name" class="text-block-title name">
|
||||||
<span class="pre-text">from:</span>
|
<span class="pre-text"> {{ $t('SEARCH.FROM') }}: </span>
|
||||||
{{ name }}
|
{{ name }}
|
||||||
</h5>
|
</h5>
|
||||||
|
<h5 v-if="email" class="text-block-title email text-truncate">
|
||||||
|
<span class="pre-text">{{ $t('SEARCH.EMAIL') }}:</span>
|
||||||
|
{{ email }}
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
@@ -52,6 +58,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
email: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
accountId: {
|
accountId: {
|
||||||
type: [String, Number],
|
type: [String, Number],
|
||||||
default: '',
|
default: '',
|
||||||
@@ -128,8 +138,13 @@ export default {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
.conversation-id,
|
|
||||||
.name {
|
.name {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.conversation-id,
|
||||||
|
.name,
|
||||||
|
.email {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
.created-at,
|
.created-at,
|
||||||
@@ -138,4 +153,9 @@ export default {
|
|||||||
font-size: var(--font-size-mini);
|
font-size: var(--font-size-mini);
|
||||||
font-weight: var(--font-weight-normal);
|
font-weight: var(--font-weight-normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-details {
|
||||||
|
display: flex;
|
||||||
|
gap: var(--space-small);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<search-result-conversation-item
|
<search-result-conversation-item
|
||||||
:id="conversation.id"
|
:id="conversation.id"
|
||||||
:name="conversation.contact.name"
|
:name="conversation.contact.name"
|
||||||
|
:email="conversation.contact.email"
|
||||||
:account-id="accountId"
|
:account-id="accountId"
|
||||||
:inbox="conversation.inbox"
|
:inbox="conversation.inbox"
|
||||||
:created-at="conversation.created_at"
|
:created-at="conversation.created_at"
|
||||||
|
|||||||
Reference in New Issue
Block a user