control auto-refresh models

This commit is contained in:
Vladimir Mandic
2023-12-30 12:44:18 -05:00
parent c94d8ee4f2
commit 795865e4f5
6 changed files with 30 additions and 10 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ function initContextMenu() {
}
};
for (const tab of ['txt2img', 'img2img']) {
for (const tab of ['txt2img', 'img2img', 'control']) {
for (const el of ['generate', 'interrupt', 'skip', 'pause', 'paste', 'clear_prompt', 'extra_networks_btn']) {
const id = `#${tab}_${el}`;
appendContextMenuOption(id, 'Copy to clipboard', () => navigator.clipboard.writeText(document.querySelector(`#${tab}_prompt > label > textarea`).value));