Fix: Set widget bg color for file-bubble (#965)

This commit is contained in:
Pranav Raj S
2020-06-15 13:35:52 +05:30
committed by GitHub
parent 7c6ea3a05a
commit 667e3abbe1
3 changed files with 24 additions and 14 deletions
@@ -3,33 +3,29 @@
class="chat-bubble user"
:style="{ background: widgetColor }"
v-html="formatMessage(message)"
></div>
/>
</template>
<script>
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
import { mapGetters } from 'vuex';
export default {
name: 'UserMessageBubble',
mixins: [messageFormatterMixin],
props: {
message: String,
message: {
type: String,
default: '',
},
status: {
type: String,
default: '',
},
computed: {
...mapGetters({
widgetColor: 'appConfig/getWidgetColor',
}),
widgetColor: {
type: String,
default: '',
},
},
computed: {
...mapGetters({
widgetColor: 'appConfig/getWidgetColor',
}),
},
};
</script>