summaryrefslogtreecommitdiffstats
path: root/client/config
diff options
context:
space:
mode:
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());