mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-21 21:27:47 +00:00
small bugs
This commit is contained in:
parent
5e6e68f082
commit
42e27ffd2f
@ -212,7 +212,7 @@ export default {
|
||||
if (id) {
|
||||
this.loading = true
|
||||
this.setDiscussionLoading(id, this.loading)
|
||||
const res = await axios.post('/delete_discussion', {
|
||||
await axios.post('/delete_discussion', {
|
||||
id: id
|
||||
})
|
||||
this.loading = false
|
||||
@ -365,7 +365,7 @@ export default {
|
||||
})
|
||||
|
||||
if (this.currentDiscussion.title === '' || this.currentDiscussion.title === null) {
|
||||
this.changeTitleUsingUserMSG(this.currentDiscussion.id, usrMessage.content)
|
||||
this.changeTitleUsingUserMSG(this.currentDiscussion.id, msgObj.content)
|
||||
}
|
||||
|
||||
},
|
||||
@ -445,8 +445,8 @@ export default {
|
||||
async deleteDiscussion(id) {
|
||||
// Deletes discussion from backend and frontend
|
||||
|
||||
const index = this.list.findIndex((x) => x.id == id)
|
||||
const discussionItem = this.list[index]
|
||||
//const index = this.list.findIndex((x) => x.id == id)
|
||||
//const discussionItem = this.list[index]
|
||||
//discussionItem.loading = true
|
||||
await this.delete_discussion(id)
|
||||
if (this.currentDiscussion.id == id) {
|
||||
@ -558,6 +558,9 @@ export default {
|
||||
this.isGenerating = false
|
||||
this.setDiscussionLoading(this.currentDiscussion.id, this.isGenerating)
|
||||
this.chime.play()
|
||||
},
|
||||
copyToClipBoard(){
|
||||
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
@ -597,14 +600,14 @@ export default {
|
||||
WelcomeComponent
|
||||
},
|
||||
watch: {
|
||||
filterTitle(newVal, oldVal) {
|
||||
filterTitle(newVal) {
|
||||
if (newVal == '') {
|
||||
this.filterInProgress = true
|
||||
this.list = this.tempList
|
||||
this.filterInProgress = false
|
||||
}
|
||||
},
|
||||
isCheckbox(newval, oldval) {
|
||||
isCheckbox(newval) {
|
||||
nextTick(() => {
|
||||
feather.replace()
|
||||
})
|
||||
@ -612,7 +615,7 @@ export default {
|
||||
this.isSelectAll = false
|
||||
}
|
||||
},
|
||||
socketConnected(newval, oldval) {
|
||||
socketConnected(newval) {
|
||||
console.log("Websocket connected (watch)", newval)
|
||||
},
|
||||
showConfirmation() {
|
||||
@ -647,7 +650,7 @@ import WelcomeComponent from '../components/WelcomeComponent.vue'
|
||||
import feather from 'feather-icons'
|
||||
|
||||
import axios from 'axios'
|
||||
import { nextTick, ref } from 'vue'
|
||||
import { nextTick } from 'vue'
|
||||
|
||||
import { socket, state } from '@/services/websocket.js'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user