systopia / de.systopia.resource

CiviCRM extension to specify generic resources
Other
5 stars 4 forks source link

Refactor resource tab implementation to be generic for all entity types and explicitly support de.systopia.eck #10

Closed jensschuppe closed 2 years ago

jensschuppe commented 2 years ago

Resolves #9.

jensschuppe commented 2 years ago

@bjendres I added a redirect in the resource create form when there already is a resource for the entity. This, along with the changes in 3a2bcaa6e5e05516d8a1e7d4f5d0cee2a3437975, will make the resource tab work for any tabset that uses Core's templates/CRM/common/TabHeader.js, as does the ECK extension.

However, the tab label element does not update (except for the count badge), i.e. it will not become de-greyed and the ? icon will remain. Do you think it should be merged without resolving that?

jensschuppe commented 2 years ago

Added some changes regarding:

I also rebased everything onto the current master.

This is now ready for some extended testing.