Skip to content

Commit

Permalink
Merge pull request #9 from rbertus2000/updates
Browse files Browse the repository at this point in the history
template manager fix for lora fields
  • Loading branch information
patriceac authored Jul 22, 2023
2 parents 3da276c + 5c794ad commit 4e797a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/Patrice/template-manager.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
const selectedTemplate = templateCopy[index];
templateCopy.splice(index, 1);
// render template
loraModelField.value = ""
lora_model_0.value = ""
restoreTask(selectedTemplate.task)
numOutputsTotalField.value = slideshowImagecount.value > 0 ? slideshowImagecount.value : 256
makeImage()
Expand Down Expand Up @@ -532,7 +532,7 @@
// select template
l.addEventListener("click", (event) => {
if (!editingTemplate) {
loraModelField.value = ""
lora_model_0.value = ""
restoreTask(template.task)
document.querySelector('#task-templates-editor.popup').classList.remove("active")
event.stopPropagation()
Expand All @@ -547,7 +547,7 @@
}
templateName.classList.add('lastGeneration')
lastGeneration = templateName
loraModelField.value = ""
lora_model_0.value = ""
restoreTask(template.task)
makeImage()
event.stopPropagation()
Expand All @@ -561,7 +561,7 @@
}
templateName.classList.add('lastGeneration')
lastGeneration = templateName
loraModelField.value = ""
lora_model_0.value = ""
restoreTask(template.task)
numOutputsTotalField.value = slideshowImagecount.value > 0 ? slideshowImagecount.value : 256
makeImage()
Expand Down Expand Up @@ -962,4 +962,4 @@
});
}
}
})()
})()

0 comments on commit 4e797a4

Please sign in to comment.