diff options
author | nztqa <nztqa@users.noreply.github.com> | 2017-11-29 17:06:33 +0900 |
---|---|---|
committer | nztqa <nztqa@users.noreply.github.com> | 2017-11-29 17:06:33 +0900 |
commit | c31d7455f7b7de4198ee46c59fe0886c54bf457c (patch) | |
tree | d4226cd2278347c4f24d51b690b0f4932526a482 /client/config/blazeHelpers.js | |
parent | 162b15c0cdba99c406f41a80a431f2b99f4ff027 (diff) | |
download | wekan-c31d7455f7b7de4198ee46c59fe0886c54bf457c.tar.gz wekan-c31d7455f7b7de4198ee46c59fe0886c54bf457c.tar.bz2 wekan-c31d7455f7b7de4198ee46c59fe0886c54bf457c.zip |
Optimize for mobile web, show single list per page with navigate bar
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()); |