Chatwoot/app/javascript/widget/components/AgentMessageBubble.vue
Pranav Raj S c6feea9f6d [Enhancement] Format messages in widget (#268)
* Use message formatter in widget

* Rename the variable
2019-11-24 00:29:55 +05:30

28 lines
590 B
Vue
Executable file

<template>
<div class="chat-bubble agent" v-html="formatMessage(message)"></div>
</template>
<script>
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
export default {
name: 'AgentMessageBubble',
mixins: [messageFormatterMixin],
props: {
message: String,
},
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss">
@import '~widget/assets/scss/variables.scss';
.chat-bubble {
&.agent {
background: $color-white;
border-bottom-left-radius: $space-smaller;
color: $color-body;
}
}
</style>