mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-01-11 16:58:31 +01:00
Naming...
This commit is contained in:
parent
ce16e61e63
commit
268d7495cc
@ -208,8 +208,7 @@ function restoreTaskToUI(task) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function readUI() {
|
||||||
function readUIasJSON() {
|
|
||||||
const reqBody = {}
|
const reqBody = {}
|
||||||
for (const key in TASK_MAPPING) {
|
for (const key in TASK_MAPPING) {
|
||||||
reqBody[key] = TASK_MAPPING[key].readUI()
|
reqBody[key] = TASK_MAPPING[key].readUI()
|
||||||
@ -370,7 +369,7 @@ function checkWriteToClipboardPermission (result) {
|
|||||||
copyIcon.innerHTML = `<span class="simple-tooltip right">Copy Image Settings</span>`
|
copyIcon.innerHTML = `<span class="simple-tooltip right">Copy Image Settings</span>`
|
||||||
copyIcon.addEventListener('click', (event) => {
|
copyIcon.addEventListener('click', (event) => {
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
navigator.clipboard.writeText(JSON.stringify(readUIasJSON()))
|
navigator.clipboard.writeText(JSON.stringify(readUI()))
|
||||||
})
|
})
|
||||||
resetSettings.parentNode.insertBefore(copyIcon, resetSettings)
|
resetSettings.parentNode.insertBefore(copyIcon, resetSettings)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user