Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Add hook for module to add condition mapping #674

Open
Snugug opened this issue Apr 22, 2022 · 1 comment
Open

Add hook for module to add condition mapping #674

Snugug opened this issue Apr 22, 2022 · 1 comment
Assignees
Labels
✨ec Enhanced Conditions enhancement New feature or request

Comments

@Snugug
Copy link

Snugug commented Apr 22, 2022

Is your feature request related to a problem? Please describe.
I'd like to distribute a condition mapping I have as part of a module instead of as a JSON file to import/export

Describe the solution you'd like
A CUB supplied global hook that I can tap into that will allow me to provide a mapping name and the JSON for conditions, which should then show up in the condition lab mapping type dropdown

Describe alternatives you've considered
I tried using the existing renderConditionLab hook but changing mapTypeChoices doesn't render changes until after someone tries to use the dropdown for the first time. I also didn't see a way to attach an array for the conditions to match the added choice.

@Snugug Snugug added the enhancement New feature or request label Apr 22, 2022
@eclarke12
Copy link
Member

This makes sense. Will investigate in a future update

@eclarke12 eclarke12 self-assigned this May 19, 2022
@eclarke12 eclarke12 added the ✨ec Enhanced Conditions label May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
✨ec Enhanced Conditions enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants