Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
andzejsp committed Jun 17, 2023
1 parent 25fd36f commit e13304a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
14 changes: 7 additions & 7 deletions web/src/components/ChatBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@
</style>
<script setup>
import MountedPersonalitiesComponent from './MountedPersonalitiesComponent.vue'
</script>
<script>
import { nextTick, TransitionGroup } from 'vue'
import feather from 'feather-icons'
import filesize from '../plugins/filesize'
</script>
<script>
export default {
name: 'ChatBox',
Expand All @@ -179,13 +179,13 @@ export default {
loading: false
},
components: {
//MountedPersonalitiesComponent
},
// components: {
// //MountedPersonalitiesComponent
// },
setup () {
return {}
},
data() {
return {
Expand Down
15 changes: 8 additions & 7 deletions web/src/views/DiscussionsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@

</div>
<div class=" bottom-0 container flex flex-row items-center justify-center " v-if="currentDiscussion.id">
<ChatBox ref="chatBoxarea" @messageSentEvent="sendMsg" :loading="isGenerating"
@stopGenerating="stopGenerating" ></ChatBox>
<ChatBox ref="chatBox" @messageSentEvent="sendMsg" :loading="isGenerating" @stopGenerating="stopGenerating" ></ChatBox>
</div>
<!-- CAN ADD FOOTER PANEL HERE -->
</div>
Expand Down Expand Up @@ -1128,12 +1127,14 @@ export default {
setFileListChat(files) {
//this.fileList = files
try {
this.$refs.chatBox.fileList = this.$refs.chatBox.fileList.concat(files)
} catch (error) {
this.$refs.toast.showToast("Failed to set filelist in chatbox\n"+error.message, 4, false)
}
console.log('chatbox',this.$refs)
this.$refs.chatBox.fileList = this.$refs.chatBox.fileList.concat(files)
this.isDragOverChat = false
Expand Down Expand Up @@ -1195,7 +1196,7 @@ export default {
},
mounted(){
console.log('chatbox mnt',this.$refs)
//console.log('chatbox mnt',this.$refs)
},
async activated() {
Expand Down

0 comments on commit e13304a

Please sign in to comment.