revert: "chore: Replace messageMixing with useMessage composable [CW-3475]" (#10011)
Reverts chatwoot/chatwoot#9942 This was causing the widget email input to break
This commit is contained in:
13
app/javascript/widget/mixins/messageMixin.js
Normal file
13
app/javascript/widget/mixins/messageMixin.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export default {
|
||||
computed: {
|
||||
messageContentAttributes() {
|
||||
const { content_attributes: attribute = {} } = this.message;
|
||||
return attribute;
|
||||
},
|
||||
hasAttachments() {
|
||||
return !!(
|
||||
this.message.attachments && this.message.attachments.length > 0
|
||||
);
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user