Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to provide a prefix for modals #143

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

scottyd980
Copy link
Contributor

I would like to make it possible for modals to live outside of the main components folder. This allows custom prefixes on the name, which adds additional flexibility to where you can put your modals in your folder structure.

This allows something along these lines:

this.modal.open("info-modal", { prefix: "modals/" })

The info-modal can now live inside components/modals/info-modal. With a significant number of modals in an application, it can become unweidly to have a lot of top level modal- modals.

The default fallback returns modal-${name} as it did before.

@scottyd980
Copy link
Contributor Author

@adrigzr I'm not sure if what I did caused the CI failures - seems like the deps PRs are also failing for a similar reason. It looks like it fails on 3 of the ember try scenarios for possibly unrelated reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant