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/cards.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/cards.js')
-rw-r--r-- | models/cards.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/models/cards.js b/models/cards.js index ff19a9a0..e9fc453e 100644 --- a/models/cards.js +++ b/models/cards.js @@ -246,7 +246,7 @@ Cards.attachSchema(new SimpleSchema({ * type of the card */ type: String, - defaultValue: '', + defaultValue: 'cardType-card', }, linkedId: { /** @@ -930,6 +930,10 @@ Cards.helpers({ return this.assignedBy; } }, + + isTemplateCard() { + return this.type === 'template-card'; + }, }); Cards.mutations({ |