ember-crumbly icon indicating copy to clipboard operation
ember-crumbly copied to clipboard

linkable property overrides block usage

Open CezaryH opened this issue 7 years ago • 0 comments

I can't use my own links and linkable property. That's template of my addon that uses crumbly, unfortunately when I set linkable=true, then in every li element there are 2 "a" elements

{{#bread-crumbs tagName="ul" linkable=true as |breadCrumbsComponent route|}}
  {{#bread-crumb route=route breadCrumbs=breadCrumbsComponent as |crumb route|}}
    {{#if route.linkable}}
      {{#link-to route.path class=linkClass activeClass="link"}}
        {{route.title}}
      {{/link-to}}
    {{else}}
        {{route.title}}
    {{/if}}
  {{/bread-crumb}}
{{/bread-crumbs}}

if I set linkable to false and remove if route.linkable statement then I'm not bale to say if element should be link or not (eg. last element in list)

CezaryH avatar Jan 29 '18 21:01 CezaryH