focus object title input automatically, update handling of untitled objects

This commit is contained in:
marlon-erler
2024-07-11 21:02:28 +02:00
parent cf0d327110
commit 7aa32a6c51
6 changed files with 450 additions and 449 deletions
+2 -5
View File
@@ -46,7 +46,7 @@ export function ChatObjectView(chat: Chat) {
// methods
function createObject() {
const newObject = chat.createObjectFromTitle(translation.untitledObject);
const newObject = chat.createObjectFromTitle("");
chat.addObjectAndSend(newObject);
selectedObject.value = newObject;
isShowingObjectModal.value = true;
@@ -69,10 +69,7 @@ export function ChatObjectView(chat: Chat) {
)}
</div>
<button
class="height-100"
disabled
>
<button class="height-100" disabled>
<span class="icon">visibility</span>
</button>
</div>