mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-12 09:19:24 +02:00
Allow setting the metadata field in the server settings, instead of forcing json whenever force_save_path is set
This commit is contained in:
@ -525,6 +525,10 @@ async function getAppConfig() {
|
|||||||
customHeightField.step = IMAGE_STEP_SIZE
|
customHeightField.step = IMAGE_STEP_SIZE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.force_save_metadata) {
|
||||||
|
metadataOutputFormatField.value = config.force_save_metadata
|
||||||
|
}
|
||||||
|
|
||||||
console.log("get config status response", config)
|
console.log("get config status response", config)
|
||||||
|
|
||||||
return config
|
return config
|
||||||
@ -737,7 +741,6 @@ async function getSystemInfo() {
|
|||||||
if (force == true) {
|
if (force == true) {
|
||||||
saveToDiskField.checked = true
|
saveToDiskField.checked = true
|
||||||
metadataOutputFormatField.disabled = false
|
metadataOutputFormatField.disabled = false
|
||||||
metadataOutputFormatField.value = "json"
|
|
||||||
}
|
}
|
||||||
saveToDiskField.disabled = force
|
saveToDiskField.disabled = force
|
||||||
diskPathField.disabled = force
|
diskPathField.disabled = force
|
||||||
|
Reference in New Issue
Block a user