mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-26 00:49:17 +01:00
Merge pull request #707 from patriceac/image-modifiers-events
Adding image modifiers events
This commit is contained in:
commit
3c435b9593
@ -104,6 +104,7 @@ function createModifierGroup(modifierGroup, initiallyExpanded) {
|
||||
}
|
||||
|
||||
refreshTagsList()
|
||||
document.dispatchEvent(new Event('refreshImageModifiers'))
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -146,6 +147,7 @@ async function loadModifiers() {
|
||||
}
|
||||
|
||||
loadCustomModifiers()
|
||||
document.dispatchEvent(new Event('loadImageModifiers'))
|
||||
}
|
||||
|
||||
function refreshModifiersState(newTags) {
|
||||
@ -227,6 +229,7 @@ function refreshTagsList() {
|
||||
activeTags.splice(idx, 1)
|
||||
refreshTagsList()
|
||||
}
|
||||
document.dispatchEvent(new Event('refreshImageModifiers'))
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user