Closed knownasilya closed 10 years ago
I think it is best to have a guard during the save to server action. So if the server returns any errors it will prevent any transitions
The blank entry shows up before save.
That's strange. Because https://github.com/dockyard/ember-admin/blob/master/addon/mixins/routes/model-records/write.js#L21-L23 is the action that handles the transition.
So you're saying that you hit Create
and it transitions to the index before hitting the server?
Oh I see, that makes sense now. Thank you for the video. I would like to have a test for this to cover regressions. You should be able to just do a simple acceptance test that counts the rows on the index after you hit Create
@bcardarella test added.
Thanks!
Currently if you click 'Create', you get a blank entry in the index table. I don't think this is the intended behavior, so this fixes it.
If I'm wrong, just close this :smile_cat:.