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

How do you add to the queue via template? #388

Open
NullVoxPopuli opened this issue Dec 7, 2022 · 0 comments
Open

How do you add to the queue via template? #388

NullVoxPopuli opened this issue Dec 7, 2022 · 0 comments

Comments

@NullVoxPopuli
Copy link
Contributor

NullVoxPopuli commented Dec 7, 2022

rendering a flash message via template would allow for unlimited and safe flexibility, as it would allow you to skip the service, and safely render links, not relying on htmlsafe, etc.

I noticed the README has no examples of this? can one be added?


I'm assuming somewhere in the app, there is a

{{#each fms.queue as |foo|}}
  some kind of rendering
{{/each}}

but then elsewhere, I'd like to be able to

<FlashMessage @type="success" @otherArgs={{..}} or whatever>
  My custom content
</FlashMessage>

and have this usage add to the queue, display, and do all the timeout-y stuff that folks would expect from using the service directly.

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

No branches or pull requests

1 participant