mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-03-11 06:54:08 +00:00
more quality
This commit is contained in:
parent
e36fa26b36
commit
b3f7878ffc
@ -23,7 +23,7 @@
|
|||||||
<p v-if="!editTitle" :title="title" class="truncate w-full">{{ title ? title === "untitled" ? "New discussion" :
|
<p v-if="!editTitle" :title="title" class="truncate w-full">{{ title ? title === "untitled" ? "New discussion" :
|
||||||
title : "New discussion" }}</p>
|
title : "New discussion" }}</p>
|
||||||
|
|
||||||
<input v-if="editTitle" type="text" id="title-box"
|
<input v-if="editTitle" type="text" id="title-box" ref="titleBox"
|
||||||
class="bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1" :value="title" required
|
class="bg-bg-light dark:bg-bg-dark rounded-md border-0 w-full -m-1 p-1" :value="title" required
|
||||||
@keydown.enter.exact="editTitleEvent()" @keydown.esc.exact="editTitleMode = false"
|
@keydown.enter.exact="editTitleEvent()" @keydown.esc.exact="editTitleMode = false"
|
||||||
@input="chnageTitle($event.target.value)" @click.stop>
|
@input="chnageTitle($event.target.value)" @click.stop>
|
||||||
@ -139,6 +139,15 @@ export default {
|
|||||||
|
|
||||||
this.showConfirmation = newval
|
this.showConfirmation = newval
|
||||||
this.editTitle = newval
|
this.editTitle = newval
|
||||||
|
if (newval) {
|
||||||
|
|
||||||
|
|
||||||
|
nextTick(() => {
|
||||||
|
this.$refs.titleBox.focus()
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
checkBoxValue(newval, oldval) {
|
checkBoxValue(newval, oldval) {
|
||||||
this.checkBoxValue_local = newval
|
this.checkBoxValue_local = newval
|
||||||
|
Loading…
x
Reference in New Issue
Block a user