adopted-ember-addons / adopted-ember-addons/ember-cli-flash

Multiple Named Queues

未关闭
#153 5 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
355
派生
118
PR 合并指标
30 天内没有已合并 PR

描述

Has there been any thought into having multiple named queues, instead of just one queue as it exist today? My use case is that I have 2 sections on the page for flash type notifications...eventually there may be 3. Ideally, I would like to use this exact same component for all of them, the hbs code would simply loop over a different queue, i.e.:

```
{{#each flashMessages.queueFoo as |flash|}}
{{! flash from queue named foo}}
{{/each}}

{{#each flashMessages.queueBar as |flash|}}
{{! flash from queue named bar}}
{{/each}}
```

If there has not been any previous discussion on this...any thoughts on doing this? I would be happy to do the work and submit a pull request, but first I wanted to see if this has been previously discussed.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。