wait on allUsersAdmin subscription on post submit page

This commit is contained in:
Sacha Greif 2014-11-18 11:13:16 +09:00
parent c3eaf39678
commit 644c519e9b
2 changed files with 4 additions and 0 deletions

View file

@ -5,6 +5,7 @@
* Adding view counter (thanks @steffenstraetz! See [PR #489](https://github.com/TelescopeJS/Telescope/pull/489)) * Adding view counter (thanks @steffenstraetz! See [PR #489](https://github.com/TelescopeJS/Telescope/pull/489))
* Splitting out `router.js` in multiple files. * Splitting out `router.js` in multiple files.
* URL can now be removed when editing a post (thanks @massimilianomarini! See [PR 484](https://github.com/TelescopeJS/Telescope/pull/484)). * URL can now be removed when editing a post (thanks @massimilianomarini! See [PR 484](https://github.com/TelescopeJS/Telescope/pull/484)).
* Now waiting on `allUsersAdmin` subscription for post submit page (thanks @kai101! See [PR 508](https://github.com/TelescopeJS/Telescope/pull/508))
## v0.9.8 ## v0.9.8

View file

@ -241,6 +241,9 @@ Meteor.startup(function () {
Router.route('/submit', { Router.route('/submit', {
name: 'post_submit', name: 'post_submit',
template: getTemplate('post_submit'), template: getTemplate('post_submit'),
waitOn: function () {
return coreSubscriptions.subscribe('allUsersAdmin');
}
}); });
}); });