small fixes2

This commit is contained in:
AndzejsP 2023-05-26 17:20:08 +03:00
parent 3c03738c23
commit be5ddc0151
2 changed files with 8 additions and 6 deletions

View File

@ -152,8 +152,10 @@ export default {
return userImgPlaceholder;
}
if(this.avatar){
return bUrl + this.avatar
}
return botImgPlaceholder;
},
defaultImg(event) {

View File

@ -125,7 +125,7 @@
<div class="relative overflow-y-scroll no-scrollbar">
<!-- DISCUSSION LIST -->
<div class="mx-4 flex-grow" :class="filterInProgress ? 'opacity-20 pointer-events-none' : ''">
<TransitionGroup name="list" >
<TransitionGroup v-if="list.length>0" name="list" >
<Discussion v-for="(item, index) in list" :key="item.id" :id="item.id" :title="item.title"
:selected="currentDiscussion.id == item.id" :loading="item.loading" :isCheckbox="isCheckbox"
:checkBoxValue="item.checkBoxValue" @select="selectDiscussion(item)" @delete="deleteDiscussion(item.id)"
@ -147,14 +147,14 @@
<!-- CHAT AREA -->
<div class="container flex flex-col flex-grow pt-4 pb-10">
<TransitionGroup name="list" >
<TransitionGroup v-if="discussionArr.length>0" name="list" >
<Message v-for="(msg, index) in discussionArr" :key="msg.id" :message="msg" :id="'msg-' + msg.id" ref="messages"
@copy="copyToClipBoard" @delete="deleteMessage" @rankUp="rankUpMessage" @rankDown="rankDownMessage"
@updateMessage="updateMessage" @resendMessage="resendMessage" :avatar="getAvatar(msg.sender)" />
<WelcomeComponent v-if="!currentDiscussion.id" />
</TransitionGroup>
<WelcomeComponent v-if="!currentDiscussion.id" />
</div>
<div class=" sticky bottom-0">
<ChatBox v-if="currentDiscussion.id" @messageSentEvent="sendMsg" :loading="isGenerating"