From 42e27ffd2fbe2fe3966a183f347860ffe6ec39f5 Mon Sep 17 00:00:00 2001 From: andzejsp Date: Sat, 6 May 2023 22:42:34 +0300 Subject: [PATCH] small bugs --- web/src/views/DiscussionsView.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/web/src/views/DiscussionsView.vue b/web/src/views/DiscussionsView.vue index 1134c3d6..150fff71 100644 --- a/web/src/views/DiscussionsView.vue +++ b/web/src/views/DiscussionsView.vue @@ -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'