Add an intermediate pending state for widget messages (#323)

* Add an intermediate pending state for widget messages

* Remove unnecessary setTimeout

* Rename method
This commit is contained in:
Pranav Raj S 2019-11-29 17:42:35 +05:30 committed by Sojan Jose
parent 070f762293
commit a3662091c7
7 changed files with 110 additions and 11 deletions

View file

@ -1,7 +1,7 @@
<template>
<div
class="chat-bubble user"
:style="{ background: widgetColor }"
:style="{ background: backgroundColor }"
v-html="formatMessage(message)"
></div>
</template>
@ -16,10 +16,17 @@ export default {
...mapGetters({
widgetColor: 'appConfig/getWidgetColor',
}),
backgroundColor() {
return this.status !== 'in_progress' ? this.widgetColor : '#c0ccda';
},
},
mixins: [messageFormatterMixin],
props: {
message: String,
status: {
type: String,
default: '',
},
},
};
</script>