If you place the button in the Nova panel, the "actionExecuted" event will not be triggered when you click on it.
This is due to the fact that the action selector component is being searched in the current panel. If it is not there, then it is impossible to send an event.
I corrected the following logic:
Looking for the action selector in the standard position
We go to the level above to search for the base layer (panels can be nested) until we find it. As we find it, we are looking for a selector
If you place the button in the Nova panel, the "actionExecuted" event will not be triggered when you click on it.
This is due to the fact that the action selector component is being searched in the current panel. If it is not there, then it is impossible to send an event.
I corrected the following logic: