mercredi 18 janvier 2017

link-to doesn't fire transitions, and doesn't do anything

I've got a link-to, built by current position, that for some reason doesn't do anything. I've turned on logging Transitions, and all I get is:

Attempting transition to customer.goodie-pack, which is the route name.

I've defined a transition in app/transitions.js, but nothing seems to happen, when I click the link. I've confirmed, that the actually has the correct href-tag. I just cannot figure out, why the click doesn't do anything. It is almost as if, something returns false, but doesn't log it (Which I believe could be some hook returning false or alike, but I'm unaware of anything firing.. The beforeModel/Model/afterModel-hooks, are AFAIK logged, when happening?)

I'm using the almost exact same script between two other routes, that works just fine, and logs as follows:

Attempting transition to customer.index
Preparing to transition from 'customer.goodie-pack' to 'customer.index'
Transition #1: customer.index: calling beforeModel hook
Transition #1: customer.index: calling deserialize hook
Transition #1: customer.index: calling afterModel hook
Transition #1: Resolved all models on destination route; finalizing transition.
Transitioned into 'customer.index'
Transition #1: TRANSITION COMPLETE.

Thus calling the hooks in the "transition-to"-route. I'm not even seeing the "preparing"-call?

I'm not enough into ember, to know when which log is called in the source-code.

More info from Ember-Inspector:

  • Ember 2.9.0
  • Ember Data 2.9.0
  • jQuery 3.1.1



Aucun commentaire:

Enregistrer un commentaire