-
Notifications
You must be signed in to change notification settings - Fork 364
Blaze update to 1.10.2 and update flow router to ostrio:flow-router-extra #280
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vparpoil hope it's not too late :) Just noticed this PR (and another one where I left comments)
Please see my review.
Also in temple line 86
got to be updated to:
{{> yield}}
@@ -13,20 +12,21 @@ import '../../ui/accounts/accounts-templates.js'; | |||
FlowRouter.route('/lists/:_id', { | |||
name: 'Lists.show', | |||
action() { | |||
BlazeLayout.render('App_body', { main: 'Lists_show_page' }); | |||
this.render('App_body', { main: 'Lists_show_page' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.render('App_body', 'Lists_show_page');
}, | ||
}); | ||
|
||
FlowRouter.route('/', { | ||
name: 'App.home', | ||
action() { | ||
BlazeLayout.render('App_body', { main: 'app_rootRedirector' }); | ||
this.render('App_body', { main: 'app_rootRedirector' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.render('App_body', 'app_rootRedirector');
action() { | ||
BlazeLayout.render('App_body', { main: 'App_notFound' }); | ||
this.render('App_body', { main: 'App_notFound' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.render('App_body', 'App_notFound');
@@ -69,7 +68,7 @@ Template.App_body.helpers({ | |||
] }); | |||
}, | |||
activeListClass(list) { | |||
const active = ActiveRoute.name('Lists.show') | |||
const active = FlowRouter.current().route.name === 'Lists.show' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { FlowRouter , RouterHelpers } from 'meteor/ostrio:flow-router-extra';
RouterHelpers.name('Lists.show');
@@ -121,7 +120,7 @@ Template.App_body.events({ | |||
Meteor.logout(); | |||
|
|||
// if we are on a private list, we'll need to go to a public one | |||
if (ActiveRoute.name('Lists.show')) { | |||
if (FlowRouter.current().route.name === 'Lists.show') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { FlowRouter , RouterHelpers } from 'meteor/ostrio:flow-router-extra';
RouterHelpers.name('Lists.show');
@dr-dimitru thank you for your comments!
Any hint on how to fix those ? |
See discussion here : meteor/meteor#11014