Feature: Send images from widget

This commit is contained in:
Nithin David Thomas
2020-03-30 12:15:06 +05:30
committed by GitHub
parent e56132c506
commit 6c4e1fdaac
16 changed files with 305 additions and 67 deletions

View File

@@ -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>