summaryrefslogtreecommitdiffstats
path: root/client/components/main/header.js
blob: 0337c72bcd07cfe5706eaa9c2cc447c562951e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Template.header.helpers({
  wrappedHeader() {
    return !Session.get('currentBoard');
  },

  hideLogo() {
    return Utils.isMiniScreen() && Session.get('currentBoard');
  },

  appIsOffline() {
    return !Meteor.status().connected;
  },
});

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