summaryrefslogtreecommitdiffstats
path: root/client/components/main/header.js
blob: 30cb2d8f09639a18c452e2e25ac457255e4ba26d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Template.header.helpers({
  // Reactively set the color of the page from the color of the current board.
  headerTemplate() {
    return 'headerBoard';
  },

  wrappedHeader() {
    return !Session.get('currentBoard');
  },
});

Template.header.events({
  'click .js-create-board': Popup.open('createBoard'),
});