Merge pull request #707 from patriceac/image-modifiers-events

Adding image modifiers events
This commit is contained in:
cmdr2 2022-12-27 10:25:20 +05:30 committed by GitHub
commit 3c435b9593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'))
}) })
}) })