diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2019-02-22 22:59:19 +0100 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2019-02-24 00:05:00 +0100 |
commit | 0a53ee87b94232608b5131f47dd77d2fa4bbc5ba (patch) | |
tree | ac51a29923f3adfb936ea9d6ef0ed86b24e9f81a /models/boards.js | |
parent | ef85b71ee41e8a7a02e48363ff83bb05fd02a38e (diff) | |
download | wekan-0a53ee87b94232608b5131f47dd77d2fa4bbc5ba.tar.gz wekan-0a53ee87b94232608b5131f47dd77d2fa4bbc5ba.tar.bz2 wekan-0a53ee87b94232608b5131f47dd77d2fa4bbc5ba.zip |
Add first draft of data model and user interface. No actions.
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 10 |
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'; + }, }); |