mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
Feature: Send images from widget
This commit is contained in:
committed by
GitHub
parent
e56132c506
commit
6c4e1fdaac
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div
|
||||
class="chat-bubble user"
|
||||
:style="{ background: backgroundColor }"
|
||||
:style="{ background: widgetColor }"
|
||||
v-html="formatMessage(message)"
|
||||
></div>
|
||||
</template>
|
||||
@@ -12,14 +12,6 @@ import { mapGetters } from 'vuex';
|
||||
|
||||
export default {
|
||||
name: 'UserMessageBubble',
|
||||
computed: {
|
||||
...mapGetters({
|
||||
widgetColor: 'appConfig/getWidgetColor',
|
||||
}),
|
||||
backgroundColor() {
|
||||
return this.status !== 'in_progress' ? this.widgetColor : '#c0ccda';
|
||||
},
|
||||
},
|
||||
mixins: [messageFormatterMixin],
|
||||
props: {
|
||||
message: String,
|
||||
@@ -27,6 +19,16 @@ export default {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
widgetColor: 'appConfig/getWidgetColor',
|
||||
}),
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
widgetColor: 'appConfig/getWidgetColor',
|
||||
}),
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user