wekan/client/components/main/header.js
Maxime Quandalle 31c4aa01bd 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:

  cf0419f70e/examples/pinterest
2015-08-28 00:39:18 +02:00

14 lines
332 B
JavaScript

Template.header.helpers({
// Reactively set the color of the page from the color of the current board.
headerTemplate: function() {
return 'headerBoard';
},
wrappedHeader: function() {
return ! Session.get('currentBoard');
}
});
Template.header.events({
'click .js-create-board': Popup.open('createBoard')
});