I want to implement the following:
- Put the link first.
- When clicked, this link should trigger an action on my current route (i.e. minimize the panel or something like that)
BUT
- When the user right-clicks and selects the “new tab”, the same link should open a separate route (and also not start any actions on the current route, because this does not make sense).
So far I have tried the following:
<span {{action 'collapsePanel'}}> {{
I was hoping to override the default link behavior by including it in the interactive range, but to no avail: now when I click on the link text, I am redirected to a new route and the click action never happens.
Is it possible to implement something like using EmberJS or even simple JS settings?
Thanks!
source share