mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-26 17:08:54 +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()
|
refreshTagsList()
|
||||||
|
document.dispatchEvent(new Event('refreshImageModifiers'))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -146,6 +147,7 @@ async function loadModifiers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadCustomModifiers()
|
loadCustomModifiers()
|
||||||
|
document.dispatchEvent(new Event('loadImageModifiers'))
|
||||||
}
|
}
|
||||||
|
|
||||||
function refreshModifiersState(newTags) {
|
function refreshModifiersState(newTags) {
|
||||||
@ -227,6 +229,7 @@ function refreshTagsList() {
|
|||||||
activeTags.splice(idx, 1)
|
activeTags.splice(idx, 1)
|
||||||
refreshTagsList()
|
refreshTagsList()
|
||||||
}
|
}
|
||||||
|
document.dispatchEvent(new Event('refreshImageModifiers'))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user