remove json from chat messages
This commit is contained in:
parent
e926521bbc
commit
e2c2b64f5e
2 changed files with 40 additions and 13 deletions
|
|
@ -41,10 +41,15 @@
|
|||
:name="message.sender"
|
||||
:text="[message.msg]"
|
||||
:sent="message.sender == 'Me'"
|
||||
:bg-color="message.sender == 'Me' ? 'white' : 'light-green-2'"
|
||||
:bg-color="message.json ? 'yellow-11' : message.sender == 'Me' ? 'white' : 'light-green-2'"
|
||||
:stamp="message.timestamp"
|
||||
size="6"
|
||||
/>
|
||||
><template v-slot:avatar v-if="message.json">
|
||||
<q-icon
|
||||
name="smart_toy"
|
||||
class="q-message-avatar q-message-avatar--received"
|
||||
/> </template
|
||||
></q-chat-message>
|
||||
</q-card-section>
|
||||
<q-card-actions>
|
||||
<q-form @submit="sendMessage" class="full-width chat-input">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue