summaryrefslogtreecommitdiffstats
path: root/client/config
diff options
context:
space:
mode:
authornztqa <nztqa@users.noreply.github.com>2017-11-29 17:06:33 +0900
committernztqa <nztqa@users.noreply.github.com>2017-11-29 17:06:33 +0900
commitc31d7455f7b7de4198ee46c59fe0886c54bf457c (patch)
treed4226cd2278347c4f24d51b690b0f4932526a482 /client/config
parent162b15c0cdba99c406f41a80a431f2b99f4ff027 (diff)
downloadwekan-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')
-rw-r--r--client/config/blazeHelpers.js11
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());