mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-26 10:16:12 +01:00
Fix model merger tab initialization
This commit is contained in:
parent
dd21c07d4a
commit
8431395326
@ -333,19 +333,13 @@
|
||||
const tabSettingsBatch = document.querySelector('#tab-merge-opts-batch')
|
||||
linkTabContents(tabSettingsSingle)
|
||||
linkTabContents(tabSettingsBatch)
|
||||
let mergeModelAField = new ModelDropdown(document.querySelector('#mergeModelA'), 'stable-diffusion')
|
||||
let mergeModelBField = new ModelDropdown(document.querySelector('#mergeModelB'), 'stable-diffusion')
|
||||
|
||||
/////////////////////// Event Listener
|
||||
document.addEventListener('tabClick', (e) => {
|
||||
if (e.detail.name == 'merge') {
|
||||
console.log('Activate')
|
||||
// let modelList = stableDiffusionModelField.cloneNode(true)
|
||||
// modelList.id = "mergeModelA"
|
||||
// document.querySelector("#mergeModelA").replaceWith(modelList)
|
||||
// modelList = stableDiffusionModelField.cloneNode(true)
|
||||
// modelList.id = "mergeModelB"
|
||||
// document.querySelector("#mergeModelB").replaceWith(modelList)
|
||||
let mergeModelAField = new ModelDropdown(document.querySelector('#mergeModelA'), 'stable-diffusion')
|
||||
let mergeModelBField = new ModelDropdown(document.querySelector('#mergeModelB'), 'stable-diffusion')
|
||||
updateChart()
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user