mirror of
https://gitlab.rlp.net/proj-wise2526-video2document/video2document.git
synced 2026-06-15 18:01:52 +02:00
Fixed a problem with the costum document text display
This commit is contained in:
@@ -315,7 +315,6 @@ generateBtn.addEventListener("click", () => {
|
||||
const content = document.getElementById("prompt").value.trim();
|
||||
if (!name || !content) {
|
||||
result.textContent = "Bitte Dokumentname und Prompt ausfüllen.";
|
||||
console.log(name + " " + content);
|
||||
setTimeout(() => {
|
||||
result.textContent = "";
|
||||
}, 3000);
|
||||
@@ -375,7 +374,6 @@ window.api.getTxtFiles().then(files => {
|
||||
existingDocs.addEventListener("change", async () => {
|
||||
const existingDocsed = existingDocs.value;
|
||||
const exampleText = "";
|
||||
|
||||
if (existingDocsed === "newDoc") {
|
||||
docNameWrapper.classList.remove("hidden");
|
||||
docName.value = "";
|
||||
@@ -386,6 +384,7 @@ existingDocs.addEventListener("change", async () => {
|
||||
|
||||
const content = await window.api.readTxtFile(existingDocsed);
|
||||
prompt.value = content;
|
||||
document.getElementById("prompt").textContent = content;
|
||||
docName.value = existingDocsed.replace(".txt", "");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user