mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user