summaryrefslogtreecommitdiffstats
path: root/client/components/main/header.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-08-27 00:27:23 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-08-28 00:39:18 +0200
commit31c4aa01bda63e510e120ae9da8149c732111d2a (patch)
tree9d567a379c75f9f7feb9c687108ce53841a5399c /client/components/main/header.js
parent95dcd8a146d5fa8ef0957019faf59fbfdcf98788 (diff)
downloadwekan-31c4aa01bda63e510e120ae9da8149c732111d2a.tar.gz
wekan-31c4aa01bda63e510e120ae9da8149c732111d2a.tar.bz2
wekan-31c4aa01bda63e510e120ae9da8149c732111d2a.zip
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
Diffstat (limited to 'client/components/main/header.js')
-rw-r--r--client/components/main/header.js4
1 files changed, 1 insertions, 3 deletions
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');
}
});