chat moderation hotfixes

This commit is contained in:
Mary Kate 2020-09-11 15:33:27 -05:00 committed by Angelina Filippova
parent 3350a501ad
commit 2b4d407ea6

View file

@ -115,12 +115,15 @@
<div class="el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition el-table--medium"> <div class="el-table el-table--fit el-table--enable-row-hover el-table--enable-row-transition el-table--medium">
<table class="user-chats-table"> <table class="user-chats-table">
<tbody v-if="!chatsLoading" class="chats"> <tbody v-if="!chatsLoading" class="chats">
<tr v-if="statuses.length === 0" class="no-statuses">> <tr v-if="chats.length === 0" class="no-statuses">>
{{ $t('userProfile.noChats') }} {{ $t('userProfile.noChats') }}
</tr> </tr>
<tr v-for="chat in chats" :key="chat.id" class="el-table__row chat-item"> <tr v-for="chat in chats" :key="chat.id" class="el-table__row chat-item">
<td> <td>
<a v-if="propertyExists(chat, 'id')" :href="`/#/chats/${chat.id}/`"> <router-link
v-if="propertyExists(chat, 'id')"
:to="{ name: 'ChatsShow', params: { id: chat.id }}"
class="router-link">
<div class="chat-card-header"> <div class="chat-card-header">
<img v-if="propertyExists(chat.receiver, 'avatar')" :src="chat.receiver.avatar" class="chat-avatar-img"> <img v-if="propertyExists(chat.receiver, 'avatar')" :src="chat.receiver.avatar" class="chat-avatar-img">
<span v-if="propertyExists(chat.receiver, 'username')" class="chat-account-name">{{ chat.receiver.username }}</span> <span v-if="propertyExists(chat.receiver, 'username')" class="chat-account-name">{{ chat.receiver.username }}</span>
@ -134,7 +137,7 @@
<div class="chat-card-preview"> <div class="chat-card-preview">
<span v-if="propertyExists(chat, 'last_message')" class="chat-preview">{{ chat.last_message.content }}</span> <span v-if="propertyExists(chat, 'last_message')" class="chat-preview">{{ chat.last_message.content }}</span>
</div> </div>
</a> </router-link>
</td> </td>
</tr> </tr>
</tbody> </tbody>