Giter Site home page Giter Site logo

Comments (15)

cibernox avatar cibernox commented on August 29, 2024

Just to give exact context, the problem is in this lines: https://github.com/poteto/ember-crumbly/blob/develop/addon/components/bread-crumbs.js#L33-L49

That computed property gets updated whenever the user transitions to a route with a different name, but in our case we're transitioning to the same route with a different id.

I don't know if there any public API in the router or the application controller that exposes more information about the value of the dynamic segment of the active route, so that CP can add that as a dependent key.

from ember-crumbly.

gmurphey avatar gmurphey commented on August 29, 2024

This is fixed in #27.

from ember-crumbly.

cibernox avatar cibernox commented on August 29, 2024

@gmurphey Good to know. Do you know if that if going to be blocked much longer?

from ember-crumbly.

gmurphey avatar gmurphey commented on August 29, 2024

@cibernox It's currently blocked by #30, which is fixed by #31 and just need to be merged.

from ember-crumbly.

gmurphey avatar gmurphey commented on August 29, 2024

@cibernox #27 does work on its own if you want to use that branch for now. It's just that the tests are failing due to an unrelated issue outlined in #30.

from ember-crumbly.

cibernox avatar cibernox commented on August 29, 2024

I asked because #31 seems to be there for around a month, so perhaps was not merged for some problem I wasn't aware.

from ember-crumbly.

poteto avatar poteto commented on August 29, 2024

Super sorry about that guys! I accidentally unwatched the repo so I wasn't getting any notifications.

from ember-crumbly.

gmurphey avatar gmurphey commented on August 29, 2024

No problem, @poteto! Rebasing #27 now!

from ember-crumbly.

samdemaeyer avatar samdemaeyer commented on August 29, 2024

@poteto, @gmurphey
Hi Guys, thanks for the quick release!
There is however an issue, if you use the component like this:

{{#bread-crumbs tagName="ol" outputStyle="bootstrap" linkable=true as |component crumb|}}
  {{#if (eq crumb.title 'Authenticated')}}
    <i class="ti-home"></i>
  {{else}}
    {{crumb.title}}
  {{/if}}
{{/bread-crumbs}}

The output does not generate the <li> & <a> tags any more.
I just updated to the new release. This is how it rendered in 0.2.0:
screen shot 2015-08-17 at 10 18 32

This is what is being rendered in the new release:
screen shot 2015-08-17 at 10 14 44

<ol>            
  <i class="ti-home"></i>
  Calendar
  Personal
</ol>

from ember-crumbly.

gmurphey avatar gmurphey commented on August 29, 2024

Hi, @samdemaeyer! As part of the fix for #30, a bread-crumb component was added to render each individual crumb. I believe your template should become:

{{#bread-crumbs tagName="ol" outputStyle="bootstrap" linkable=true as |component crumb|}}
  {{#bread-crumb route=crumb breadCrumbs=component}}
    {{#if (eq crumb.title 'Authenticated')}}
      <i class="ti-home"></i>
    {{else}}
      {{crumb.title}}
    {{/if}}
  {{/bread-crumb}}
{{/bread-crumbs}}

Let me know if that doesn't work for you. I'm happy to revisit it.

from ember-crumbly.

samdemaeyer avatar samdemaeyer commented on August 29, 2024

@gmurphey, Thanks, that makes sense. It works fine! @poteto, could you document this change in the README. Again, thanks for the quick response and the help!

from ember-crumbly.

gmurphey avatar gmurphey commented on August 29, 2024

@samdemaeyer @poteto just updated the documentation in #39.

from ember-crumbly.

fsmanuel avatar fsmanuel commented on August 29, 2024

@gmurphey can we close the issue?

from ember-crumbly.

fsmanuel avatar fsmanuel commented on August 29, 2024

@samdemaeyer can we close the issue?

from ember-crumbly.

gmurphey avatar gmurphey commented on August 29, 2024

@fsmanuel Seems okay to close to me. #39 has been merged.

from ember-crumbly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.