diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-11-29 12:11:02 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-11-29 12:11:02 +0200 |
commit | c72792e4ed0e1ff88a1de494e7885238dc6c9881 (patch) | |
tree | c8fd646292b810f12ab53762d2404b82d58b2f64 /client/config/blazeHelpers.js | |
parent | 7e4b42e9b3482460cac77a603809a8b5d4016477 (diff) | |
parent | c3e2ee1db8b84102ffb58ffa07d6a0a687ef7455 (diff) | |
download | wekan-c72792e4ed0e1ff88a1de494e7885238dc6c9881.tar.gz wekan-c72792e4ed0e1ff88a1de494e7885238dc6c9881.tar.bz2 wekan-c72792e4ed0e1ff88a1de494e7885238dc6c9881.zip |
Merge branch 'nztqa-conflict-resolution-458' into devel
Optimize for mobile web, show single list per page with navigate bar.
Thanks to floatinghotpot and nztqa ! Related #953
Diffstat (limited to 'client/config/blazeHelpers.js')
-rw-r--r-- | client/config/blazeHelpers.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/config/blazeHelpers.js b/client/config/blazeHelpers.js index 73ee24b6..e058d722 100644 --- a/client/config/blazeHelpers.js +++ b/client/config/blazeHelpers.js @@ -16,6 +16,17 @@ Blaze.registerHelper('currentCard', () => { } }); +Blaze.registerHelper('currentList', () => { + const listId = Session.get('currentList'); + if (listId) { + return Lists.findOne(listId); + } else { + return null; + } +}); + Blaze.registerHelper('getUser', (userId) => Users.findOne(userId)); Blaze.registerHelper('concat', (...args) => args.slice(0, -1).join('')); + +Blaze.registerHelper('isMiniScreen', () => Utils.isMiniScreen()); |