diff options
Diffstat (limited to 'models/lists.js')
-rw-r--r-- | models/lists.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/models/lists.js b/models/lists.js index 54e7d037..e0040752 100644 --- a/models/lists.js +++ b/models/lists.js @@ -107,6 +107,13 @@ Lists.attachSchema(new SimpleSchema({ 'saddlebrown', 'paleturquoise', 'mistyrose', 'indigo', ], }, + type: { + /** + * The type of list + */ + type: String, + defaultValue: 'list', + }, })); Lists.allow({ @@ -169,6 +176,10 @@ Lists.helpers({ return this.color; return ''; }, + + isTemplateList() { + return this.type === 'template-list'; + }, }); Lists.mutations({ |