mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
feat: show external error in message as tooltip (#6701)
This commit is contained in:
committed by
GitHub
parent
803015b7f8
commit
4ed35cf461
@@ -68,6 +68,7 @@
|
|||||||
:id="data.id"
|
:id="data.id"
|
||||||
:sender="data.sender"
|
:sender="data.sender"
|
||||||
:story-sender="storySender"
|
:story-sender="storySender"
|
||||||
|
:external-error="externalError"
|
||||||
:story-id="storyId"
|
:story-id="storyId"
|
||||||
:is-a-tweet="isATweet"
|
:is-a-tweet="isATweet"
|
||||||
:is-a-whatsapp-channel="isAWhatsAppChannel"
|
:is-a-whatsapp-channel="isAWhatsAppChannel"
|
||||||
@@ -261,6 +262,9 @@ export default {
|
|||||||
contentAttributes() {
|
contentAttributes() {
|
||||||
return this.data.content_attributes || {};
|
return this.data.content_attributes || {};
|
||||||
},
|
},
|
||||||
|
externalError() {
|
||||||
|
return this.contentAttributes.external_error || null;
|
||||||
|
},
|
||||||
sender() {
|
sender() {
|
||||||
return this.data.sender || {};
|
return this.data.sender || {};
|
||||||
},
|
},
|
||||||
@@ -351,7 +355,7 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.isFailed) {
|
if (this.isFailed) {
|
||||||
return this.$t(`CONVERSATION.SEND_FAILED`);
|
return this.externalError ? '' : this.$t(`CONVERSATION.SEND_FAILED`);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -9,6 +9,14 @@
|
|||||||
>
|
>
|
||||||
{{ readableTime }}
|
{{ readableTime }}
|
||||||
</span>
|
</span>
|
||||||
|
<span v-if="externalError" class="read-indicator-wrap">
|
||||||
|
<fluent-icon
|
||||||
|
v-tooltip.top-start="externalError"
|
||||||
|
icon="error-circle"
|
||||||
|
class="action--icon"
|
||||||
|
size="14"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
<span v-if="showReadIndicator" class="read-indicator-wrap">
|
<span v-if="showReadIndicator" class="read-indicator-wrap">
|
||||||
<fluent-icon
|
<fluent-icon
|
||||||
v-tooltip.top-start="$t('CHAT_LIST.MESSAGE_READ')"
|
v-tooltip.top-start="$t('CHAT_LIST.MESSAGE_READ')"
|
||||||
@@ -98,6 +106,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
externalError: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
storyId: {
|
storyId: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user