From 31c4aa01bda63e510e120ae9da8149c732111d2a Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Thu, 27 Aug 2015 00:27:23 +0200 Subject: Open a modal (or a new page) based on context This feature is also sometime named the Pinterest-style route, which is further explained in this react-router example: https://github.com/rackt/react-router/tree/cf0419f70e14a0ae39cba2ff99b01d3cbbd085be/examples/pinterest --- client/components/main/header.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'client/components/main/header.js') diff --git a/client/components/main/header.js b/client/components/main/header.js index 864f889d..7b7e431f 100644 --- a/client/components/main/header.js +++ b/client/components/main/header.js @@ -5,9 +5,7 @@ Template.header.helpers({ }, wrappedHeader: function() { - var unwrapedRoutes = ['board', 'card']; - var currentRouteName = FlowRouter.getRouteName(); - return unwrapedRoutes.indexOf(currentRouteName) === -1; + return ! Session.get('currentBoard'); } }); -- cgit v1.2.3-1-g7c22