Merge pull request #9 from Lavorther/main
Update "Send to miniPaint" button to match webUI's new emoji buttonspull/10/head
commit
da1e1d3910
File diff suppressed because one or more lines are too long
|
|
@ -219,9 +219,10 @@ class File_send_class {
|
|||
if (window.parent.gradioApp().querySelector(`#${queryId}_open_in_minipaint`) == null){
|
||||
const newButton = existingButton.cloneNode(true);
|
||||
newButton.id = `${queryId}_open_in_minipaint`;
|
||||
newButton.textContent = "Send to miniPaint";
|
||||
newButton.textContent = "✏️";
|
||||
newButton.title= "Send image to miniPaint tab.";
|
||||
newButton.addEventListener("click", addButton);
|
||||
window.parent.gradioApp().querySelector(`#${queryId}`).appendChild(newButton);
|
||||
window.parent.gradioApp().querySelector(`#${queryId} .form`).appendChild(newButton);
|
||||
}
|
||||
else {
|
||||
existingButton = window.parent.gradioApp().querySelector(`#${queryId}_open_in_minipaint`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue