mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fix(webapp): better chat upload ui (#8693)
* Fix date formatting of transmitting message * Avoid duplicate key; fix formatting
This commit is contained in:
parent
a912a353e4
commit
4a42d22692
@ -73,8 +73,11 @@
|
|||||||
v-for="message in messages.filter((m) => m.isUploading)"
|
v-for="message in messages.filter((m) => m.isUploading)"
|
||||||
:slot="'message_' + message._id"
|
:slot="'message_' + message._id"
|
||||||
v-bind:key="message._id"
|
v-bind:key="message._id"
|
||||||
|
class="vac-format-message-wrapper"
|
||||||
>
|
>
|
||||||
{{ $t('chat.transmitting') }}
|
<div class="markdown">
|
||||||
|
<p>{{ $t('chat.transmitting') }}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-for="room in rooms" :slot="'room-list-avatar_' + room.id" :key="room.id">
|
<div v-for="room in rooms" :slot="'room-list-avatar_' + room.id" :key="room.id">
|
||||||
@ -406,10 +409,10 @@ export default {
|
|||||||
// Immediately add new message
|
// Immediately add new message
|
||||||
const localMessage = {
|
const localMessage = {
|
||||||
...messageDetails,
|
...messageDetails,
|
||||||
_id: 'new',
|
_id: 'new' + Math.random().toString(36).substring(2, 15),
|
||||||
seen: false,
|
seen: false,
|
||||||
saved: false,
|
saved: false,
|
||||||
date: new Date(),
|
date: new Date().toDateString(),
|
||||||
senderId: this.currentUser.id,
|
senderId: this.currentUser.id,
|
||||||
files:
|
files:
|
||||||
messageDetails.files?.map((file) => ({
|
messageDetails.files?.map((file) => ({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user