mirror of
https://github.com/yankooliveira/sd-webui-photopea-embed.git
synced 2026-04-26 17:29:12 +00:00
Fixes [#9] --hide-ui-dir-config parameter not showing [Send to Photopea] buttons.
Thanks to https://github.com/Odls.
This commit is contained in:
@@ -32,6 +32,7 @@ function onPhotopeaLoaded(iframe) {
|
||||
function createSendToPhotopeaButton(queryId, gallery) {
|
||||
const existingButton = gradioApp().querySelector(`#${queryId} button`);
|
||||
const newButton = existingButton.cloneNode(true);
|
||||
newButton.style.display = "flex";
|
||||
newButton.id = `${queryId}_open_in_photopea`;
|
||||
newButton.textContent = "Send to Photopea";
|
||||
newButton.addEventListener("click", () => openImageInPhotopea(gallery));
|
||||
|
||||
Reference in New Issue
Block a user