Fire ppcp_buttons_enabled_changed

This commit is contained in:
Alex P 2023-09-11 10:36:16 +03:00
parent bf64309bf5
commit 465649ba15
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -38,6 +38,10 @@ export default class BootstrapHelper {
disable(options.messagesWrapper);
}
}
if (wasDisabled !== !shouldEnable) {
jQuery(options.wrapper).trigger('ppcp_buttons_enabled_changed', [shouldEnable]);
}
}
static shouldEnable(bs, options) {