summaryrefslogtreecommitdiffstats
path: root/models/swimlanes.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2019-02-22 22:59:19 +0100
committerAndrés Manelli <andresmanelli@gmail.com>2019-02-24 00:05:00 +0100
commit0a53ee87b94232608b5131f47dd77d2fa4bbc5ba (patch)
treeac51a29923f3adfb936ea9d6ef0ed86b24e9f81a /models/swimlanes.js
parentef85b71ee41e8a7a02e48363ff83bb05fd02a38e (diff)
downloadwekan-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/swimlanes.js')
-rw-r--r--models/swimlanes.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/models/swimlanes.js b/models/swimlanes.js
index e2c3925c..bdc9a691 100644
--- a/models/swimlanes.js
+++ b/models/swimlanes.js
@@ -78,6 +78,13 @@ Swimlanes.attachSchema(new SimpleSchema({
}
},
},
+ type: {
+ /**
+ * The type of swimlane
+ */
+ type: String,
+ defaultValue: 'swimlane',
+ },
}));
Swimlanes.allow({
@@ -114,6 +121,10 @@ Swimlanes.helpers({
return this.color;
return '';
},
+
+ isTemplateSwimlane() {
+ return this.type === 'template-swimlane';
+ },
});
Swimlanes.mutations({