mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-21 02:18:24 +02:00
The use as Input button confuses me, that's why it is now disabled
This commit is contained in:
parent
2079283713
commit
216ecce506
@ -116,7 +116,7 @@ def init():
|
|||||||
try:
|
try:
|
||||||
image: GalleryImage = db.query(GalleryImage).filter(GalleryImage.path == image_path).first()
|
image: GalleryImage = db.query(GalleryImage).filter(GalleryImage.path == image_path).first()
|
||||||
head = "<head><link rel='stylesheet' href='/media/css/single-gallery.css'></head>"
|
head = "<head><link rel='stylesheet' href='/media/css/single-gallery.css'></head>"
|
||||||
body = f"<body><div><button id='use_these_settings' class='primaryButton' json='{image.settingsJSON()}'>Use these settings</button><button id='use_as_input' class='primaryButton'>Use as Input</button></div><img src='/image/" + image.path + "'>" + image.htmlForm() + "</body>"
|
body = f"<body><div><button id='use_these_settings' class='primaryButton' json='{image.settingsJSON()}'>Use these settings</button><button id='use_as_input' class='primaryButton' disabled>Use as Input</button></div><img src='/image/" + image.path + "'>" + image.htmlForm() + "</body>"
|
||||||
return Response(content="<html>" + head + body + "</head>", media_type="text/html")
|
return Response(content="<html>" + head + body + "</head>", media_type="text/html")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
@ -35,4 +35,8 @@ button {
|
|||||||
|
|
||||||
div {
|
div {
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:disabled {
|
||||||
|
color: gray;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user