The use as Input button confuses me, that's why it is now disabled

This commit is contained in:
ManInDark 2023-08-11 21:40:49 +02:00
parent 2079283713
commit 216ecce506
No known key found for this signature in database
GPG Key ID: 72EC12A5B2D62779
2 changed files with 5 additions and 1 deletions

View File

@ -116,7 +116,7 @@ def init():
try:
image: GalleryImage = db.query(GalleryImage).filter(GalleryImage.path == image_path).first()
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")
except Exception as e:
print(e)

View File

@ -36,3 +36,7 @@ button {
div {
margin: 16px;
}
:disabled {
color: gray;
}