yogiben / meteor-admin

A complete admin dashboard solution
https://atmospherejs.com/yogiben/admin
GNU General Public License v3.0
826 stars 261 forks source link

waitOn called with params._id please? #335

Open morgunder opened 8 years ago

morgunder commented 8 years ago

I was looking at using the collection: waitOn option to wait for a different collection, but it was not possible to access this.params.id from the router. could you pass that into the waitOn function you call in the edit route creator? otherwise i don't see any way to access the :id from the route in the waitOn option.

thx

morgunder commented 8 years ago

not used to coffee script but would this fix it?

both/startup.coffee:125 waitOn: -> Meteor.subscribe 'adminCollectionDoc', collectionName, parseID(@params._id) collection.routes?.edit?.waitOn(@params._id)