mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 01:48:21 +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:
parent
7a9bc883df
commit
4c8d5a7077
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user