mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-08 17:06:42 +00:00
import/export title
This commit is contained in:
@@ -511,7 +511,7 @@
|
|||||||
_result.classList.toggle("error", result?.startsWith("error: "));
|
_result.classList.toggle("error", result?.startsWith("error: "));
|
||||||
_result.innerHTML = render(result || "*processing*");
|
_result.innerHTML = render(result || "*processing*");
|
||||||
|
|
||||||
this.#_tool.classList.toggle("invalid", invalid);
|
this.#_tool.classList.toggle("invalid", !!invalid);
|
||||||
|
|
||||||
this.#_tool.setAttribute("data-tool", name);
|
this.#_tool.setAttribute("data-tool", name);
|
||||||
} else {
|
} else {
|
||||||
@@ -1599,6 +1599,7 @@
|
|||||||
|
|
||||||
$export.addEventListener("click", () => {
|
$export.addEventListener("click", () => {
|
||||||
const data = JSON.stringify({
|
const data = JSON.stringify({
|
||||||
|
title: chatTitle,
|
||||||
message: $message.value,
|
message: $message.value,
|
||||||
attachments: attachments,
|
attachments: attachments,
|
||||||
role: $role.value,
|
role: $role.value,
|
||||||
@@ -1639,6 +1640,7 @@
|
|||||||
|
|
||||||
clearMessages();
|
clearMessages();
|
||||||
|
|
||||||
|
storeValue("title", data.title);
|
||||||
storeValue("message", data.message);
|
storeValue("message", data.message);
|
||||||
storeValue("attachments", data.attachments);
|
storeValue("attachments", data.attachments);
|
||||||
storeValue("role", data.role);
|
storeValue("role", data.role);
|
||||||
|
Reference in New Issue
Block a user