summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index 71831a63..a2f4c0a8 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -304,6 +304,13 @@ Boards.attachSchema(new SimpleSchema({
defaultValue: false,
optional: true,
},
+ type: {
+ /**
+ * The type of board
+ */
+ type: String,
+ defaultValue: 'board',
+ },
}));
@@ -559,6 +566,9 @@ Boards.helpers({
});
},
+ isTemplateBoard() {
+ return this.type === 'template-board';
+ },
});